首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > 其他数据库 >

数据库中最近的比较

2012-07-15 
数据库中日前的比较select * from tb_product where createdate to_date(2011-6-15,yyyy-MM-dd) - 1

数据库中日前的比较
select * from tb_product where

createdate > to_date('2011-6-15','yyyy-MM-dd') - 1

and

createdate<=to_date('2011-6-16','yyyy-MM-dd') + 1;


通过to_date()方法将字符串行的日期转换成日前类型。

热点排行