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

python - Installing PyDev in eclipse is failed -

PHP OOP-based login system -

c# - Nested Internal Class with Readonly Hashtable throws Null ref exception.. on assignment -