1、在sql server 中比较时间很简单:select * from table where time<'2006-09-12 00:00:00';
2、在oracle中比较时间则需使用to_date函数:select * from oracletable where time<to_date('2006-09-12 00:00:00','yyyy-mm-dd hh24:mi:ss')
1、在sql server 中比较时间很简单:select * from table where time<'2006-09-12 00:00:00';
2、在oracle中比较时间则需使用to_date函数:select * from oracletable where time<to_date('2006-09-12 00:00:00','yyyy-mm-dd hh24:mi:ss')