oracle的日期问题! 办法比较笨,但可行:select to_date(to_char(sysdate)) from dualwhere (to_date(to_char(sysdate))-to_date(to_char(sysdate)))=0 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 date1和date2能确定是几位长吗?4?6?8? ..... 实在不行就select * from tb where to_char(operate_date,'yyyymmdd') between :date1 and :date2 ; 参数类型为字符串,格式类似于'20040912' select * from tb where operate_date between to_date(:date1,'yyyymmdd') and to_date(:date2,'yyyymmdd'); 参数类型为字符串,格式类似于'20040912' select *from table_anmewhere operate_date >=to_date(:date1,'dd-mm-yyyy') and operate_date <=to_date(:date2,'dd-mm-yyyy') SELECT * FROM TABLE_NAME WHERE operate_date between to_date(:date1,'yyyymmdd') and to_date(:date2,'yyyymmdd');不行吗? Oracle数据表高效查询问题求解 WIN旗舰64安装ORACLE问题 求助各位大侠帮忙将如下SQLDA写的接口改成OCI写的接口 SQL查询优化 急,实现KEY值的自增长 执行存储过程失败了,菜鸟不清楚哪里出问题了,求大神 关于基础SELECT 语句问题,求大大指正,谢啦~~ 为什么我的Oracle9i的服务中没有OracleServiceORACLE呀? 懒,请大哥帮我写一条SQL语句 怎样获得OraOLEDB.Oracle驱动?(不能是Oracle的客户端的安装包,可以是专门用来安装的驱动包) 请教如何用c连接oracle数据库? Table(表)和View(视图)有何联系和区别?
4?
6?
8?
.....
select * from tb
where to_char(operate_date,'yyyymmdd') between :date1 and :date2 ;
参数类型为字符串,格式类似于'20040912'
where operate_date
between to_date(:date1,'yyyymmdd') and to_date(:date2,'yyyymmdd'); 参数类型为字符串,格式类似于'20040912'
from table_anme
where operate_date >=to_date(:date1,'dd-mm-yyyy') and operate_date <=to_date(:date2,'dd-mm-yyyy')