a表
id name dateTime
1 aa 2009-9-9
2 bb 2009-9-10
3 cc 2009-9-11
4 dd 2009-9-44
5 jj 2009-9-10
查询列dateTime中的值2009-9-11以后的值
应该怎么写啊
id name dateTime
1 aa 2009-9-9
2 bb 2009-9-10
3 cc 2009-9-11
4 dd 2009-9-44
5 jj 2009-9-10
查询列dateTime中的值2009-9-11以后的值
应该怎么写啊
解决方案 »
- 怎样下载zip文件???????????????
- struts2 tabbedpanel中sx:a的herf问题
- 请问ehcache是跟据什么来提取值的
- 学习SSH,问题多多,接踵而至,望各位大狭帮帮忙!
- 从0学习j2ee,那位朋友推荐一下学习资料
- 关于Struts2的validateXxxx()校验 返回页面的问题
- 关于hibernate中的一个api函数的用法及含义??
- 谁有数据结构(中文)java版,给小弟一份怎么样啊
- 突发异常错误:另一用户已将记录更新
- 家好,请问j2ee技术中的ejb技术要实现一个remote接口 而rmi技术也需要实现远程接口。。请问有什么区别没有?
- 哪位高手指导下,谢谢!急!
- 关于上传图片的保存问题!!
2楼的没见过,学习一下!
这个结果会把2009-9-11那天的结果查出吧。
select * from table where dateTime > to_date('2009-9-11 23:59:59','yyyy-m-dd hh24:mi:ss')
select * from table where dateTime > to_date('2009-09-11','yyyy-mm-dd')
select * from table where id>(select id from table where dateTime="2009-9-11")
错解。string类型比较也错解。
如果是String
那直接比较就可以了
select * from table where dateTime > '2009-9-11'