有啊,starttime,endtime,就是时间字段
还有bookId,bookname
还有bookId,bookname
解决方案 »
- PL/SQL这个工具有代码提示吗?
- centos安装oracle 11g解压出现错误
- 到底怎么才能把长文本插入blob类型的数据。。。
- oracle 高级问题 会的就结业啦
- oracle创建序列使用参数的问题
- 大侠们,大侠们,帮我看看这个经典的想法能不能实现啊?
- oracle pl/sql的未见问题
- 安装oracle为什么总是出错??
- 今天生日,只有自己祝福自己,开个帖子散分~~~~~~~~~
- oracle中对应与sybase中的begin transaction,rollback,commit 是什么?
- oracle能动态地增加字段吗?(在线等候)
- 请问,oracle8.16的svrmgrl工具在orlace9.x中功能相同的工具???
用时间比较:
select * from book where to_char(starttime,'yyyy-mm-dd')>to_char(sysdate,'yyyy-mm-dd')-10 and to_char(starttime,'yyyy-mm-dd')<=to_char(sysdate,'yyyy-mm-dd')
select count(*) from book where to_char(starttime,'yyyy-mm-dd')> to_char(2000-02-04,'yyyy-mm-dd') and where to_char(endtime,'yyyy-mm-dd')> to_char(2000-03-05,'yyyy-mm-dd')
from book
where to_char(starttime, 'yyyy/mm/dd') >= to_char('起始时间', 'yyyy/mm/dd')
-- and to_char(starttime, 'yyyy/mm/dd') <= to_char('终止时间', 'yyyy/mm/dd')
-- and to_char(endtime, 'yyyy/mm/dd') >= to_char('起始时间', 'yyyy/mm/dd')
and to_char(endtime, 'yyyy/mm/dd') <= to_char('终止时间', 'yyyy/mm/dd')