- 论坛徽章:
- 0
|
SQL> select 1 from dual where sysdate = trunc(to_date('2008-06-16 09:20:08','yyy
y-mm-dd hh24:mi:ss'));
未选定行
SQL> select 1 from dual where trunc(sysdate) = trunc(to_date('2008-06-16 09:20:0
8','yyyy-mm-dd hh24:mi:ss'));
1
----------
1
SQL> select 1 from dual where trunc(sysdate) = trunc(to_date('2008-06-16 09:20:0
8','yyyy-mm-dd'));
select 1 from dual where trunc(sysdate) = trunc(to_date('2008-06-16 09:20:08','y
yyy-mm-dd'))
*
ERROR 位于第 1 行:
ORA-01830: 日期格式图片在转换整个输入字符串之前结束
SQL>
参考一下。
我估计5楼你的代码也不行,如果行了,说明你顶楼的描述是错的
[ 本帖最后由 gthboy 于 2008-6-16 14:29 编辑 ] |
|