注册 登录
编程论坛 Delphi论坛

[求助]那个来看一下

leo_kp 发布于 2006-05-23 14:39, 504 次点击
下面这句话怎么总是出错啊,说什么少了操作符或是少了逗号 ,那个高手来请教一下
sqls:='select stcdt, ymdhm, zr, q from wds.st_river_r where ymdhm>=to_date('2000-12-12 08:00:00', 'yyyy-dd-mm hh24:mi:ss') and ymdhm<=to_date('2004-12-10 08:00:00','yyyy-mm-dd hh24:mi:ss')';
2 回复
#2
xu20002006-05-23 21:00

这么写试试.
sqls:='select stcdt, ymdhm, zr, q from wds.st_river_r where ymdhm>=to_date('2000-12-12 08:00:00', 'yyyy-dd-mm hh24:mi:ss')'+ 'and ymdhm<=to_date('2004-12-10 08:00:00','yyyy-mm-dd hh24:mi:ss')';

#3
leo_kp2006-05-23 21:27
我试了,不行
我把引号改成双引号后
这条语句就没有报错了
1