类型:转载 责任编辑:asp.net 日期:2007/05/23
热门软件下载:
利用sqlplus查询记录,让两个日期类型的字段相减,结果的于“1”的查询语句。谢谢!
网友回答:
select * from table where (date2 - date1) = 1
select * from table where to_char(lrrq-builddate)=1
具体点应该是:
select * from table where to_char(data2-data1)=1