急,简单的sql语言无法出来正确结果
select last_value(bj_zxyg) over()-first_value(bj_zxyg) over() bj_zxyg,last_value(bj_fxyg) over()-first_value(bj_fxyg) over() bj_fxyg,bl from table1 where dybm=1 and fl=0 and bj=1 and cjsj>=to_date('2003-4-1 00:00:00','yyyy-mm-dd hh24:mi:ss')
bj_zxyg,bj_fxyg,bl,dybm,fl,bj都是number型,cjsj是Date型
以上的语句在sqlplus中可以执行,出来结果
现在在后面再加一个条件:and cjsj<=to_date('2003-4-30 23:59:59','yyyy-mm-dd hh24:mi:ss'),在sqlplus中就无法执行了,也没有任何出错讯息,回车后换行,在回车就回到了SQL>提示符
请问这是怎么回事啊?是我哪里有错吗?