select * from t_product p where 1=1 and p.pdate >= '#1985-01-01 00:00:00#';
这个语句可以查询到一条记录,6月5日存入了一条select * from t_product p where 1=1 and p.pdate <= '#2009-12-31 23:59:59#';
这个语句查询结果为Empty,既然6月5日有一条数据,为什么下面的语句却查不出来。各位大侠帮帮我啊,想不通了
这个语句可以查询到一条记录,6月5日存入了一条select * from t_product p where 1=1 and p.pdate <= '#2009-12-31 23:59:59#';
这个语句查询结果为Empty,既然6月5日有一条数据,为什么下面的语句却查不出来。各位大侠帮帮我啊,想不通了
select * from t_product p where 1=1 and p.pdate >= '1985-01-01 00:00:00'; select * from t_product p where 1=1 and p.pdate <= '2009-12-31 23:59:59'; 试试。
to_date()看看
但是如果是oracle的话,'#1985-01-01 00:00:00#';
'#2009-12-31 23:59:59#'; 的格式是有问题的
3 javaccg javaccg 99.9 99.9 2009-06-0 10:33:43 2我就只是先存储了一条数据作为测试
'2009-12-31 23:59:59'