如何在不使用年份获取生日的情况下在两个日期之间 select
How to select between two dates without using year to get birthday
select * from tbl_contact e where e.dob between to_date('26-APR-2000','DD-MON-YEAR') and to_date('03-MAY-2002','DD-MON-YEAR')
如何解决这个问题。
如果你table的dob字段类型是date,下面的查询会对你有所帮助:
select * from tbl_contact e where e.dob between
to_date('26-APR','DD-MON') and to_date('03-MAY','DD-MON')
希望能帮到你
select * from tbl_contact e where e.dob between to_date('26-APR-2000','DD-MON-YEAR') and to_date('03-MAY-2002','DD-MON-YEAR')
如何解决这个问题。
如果你table的dob字段类型是date,下面的查询会对你有所帮助:
select * from tbl_contact e where e.dob between
to_date('26-APR','DD-MON') and to_date('03-MAY','DD-MON')
希望能帮到你