oracle sql日期比较
2012-09-29 10:10
531 查看
在今天之前:
在今天只后:
精确时间:
在某段时间内:
select * from up_date where update < to_date('2007-09-07 00:00:00','yyyy-mm-dd hh24:mi:ss') select * from up_date where update <= to_date('2007-09-07 00:00:00','yyyy-mm-dd hh24:mi:ss')
在今天只后:
select * from up_date where update > to_date('2007-09-07 00:00:00','yyyy-mm-dd hh24:mi:ss') select * from up_date where update >= to_date('2007-09-07 00:00:00','yyyy-mm-dd hh24:mi:ss')
精确时间:
select * from up_date where update = to_date('2007-09-07 00:00:00','yyyy-mm-dd hh24:mi:ss')
在某段时间内:
select * from up_date where update between to_date('2007-07-07 00:00:00','yyyy-mm-dd hh24:mi:ss') and to_date('2007-09-07 00:00:00','yyyy-mm-dd hh24:mi:ss') select * from up_date where update < to_date('2007-09-07 00:00:00','yyyy-mm-dd hh24:mi:ss') and update > to_date('2007-07-07 00:00:00','yyyy-mm-dd hh24:mi:ss') select * from up_date where update <= to_date('2007-09-07 00:00:00','yyyy-mm-dd hh24:mi:ss') and update >= to_date('2007-07-07 00:00:00','yyyy-mm-dd hh24:mi:ss')
相关文章推荐
- oracle sql日期比较:
- oracle sql日期比较
- OracleSQL日期比较和常用日期函数
- oracle sql日期比较
- oracle sql日期比较
- oracle sql日期比较
- Oracle sql日期比较和常用日期函数整理(全)
- oracle sql日期比较
- Oracle sql日期比较(to_date).
- oracle sql日期比较:
- oracle sql日期比较
- oracle sql日期比较:
- Oracle SQL日期比较和常用日期函数
- oracle sql日期比较
- oracle sql日期比较:
- oracle含日期比较的sql语句的优化
- oracle sql日期比较
- oracle sql日期比较
- oracle sql日期比较
- Oracle SQL日期比较和常用日期函数