SELECT * FROM VIEW7 WHERE 打印日期 between to_date('2005-10-1','yyyy-mm- dd') and to_date('2005-10-31','yyyy-mm-dd') to_date('2005-10-1','yyyy-mm- dd')用空格,去掉试试
SQL> select sysdate from dual where sysdate between to_date('2005-10-1','yyyy-mm- dd') and to_date('2005-11-30','yyyy-mm-dd');SYSDATE ----------- 2005-11-12 to_date这里没有问题啊。 检查别的地方.
to_date('2005-10-1','yyyy-mm- dd')用空格,去掉试试
-----------
2005-11-12
to_date这里没有问题啊。 检查别的地方.