sql - How to select between two dates without using year to get birthday -


select * tbl_contact e e.dob between to_date('26-apr-2000','dd-mon-year') , to_date('03-may-2002','dd-mon-year') 

how resolve issue.

if type of dob field of table date,the following query you:

select * tbl_contact e e.dob between                                                  to_date('26-apr','dd-mon')   , to_date('03-may','dd-mon') 

i hope you


Comments

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -