SQL语句错误,缺少右括号,求助!
UPDATETONGQIN_0527abSET(ON_STATION_NAME,ON_TIME_GPS)=(SELECTspeed.startstation,MIN(AB...
UPDATE TONGQIN_0527 ab
SET(ON_STATION_NAME , ON_TIME_GPS )=
(SELECT speed.startstation,MIN(ABS(TO_DATE(ab.on_time)-TO_DATE(speed.starttime) )* 24 * 60<2)time
FROMSPEED_0527 speed
WHERESUBSTR(ab.vehicle_code,4)= speed.sim_codeAND ab.ON_LINE_NUM=speed.route_nameand ROWNUM<2)
WHERE mark ='B1';
这句话运行时,在MIN函数那里总是会提示缺少右括号的错误,但是检查后没有问题,请高人帮忙看一下!谢谢! 展开
SET(ON_STATION_NAME , ON_TIME_GPS )=
(SELECT speed.startstation,MIN(ABS(TO_DATE(ab.on_time)-TO_DATE(speed.starttime) )* 24 * 60<2)time
FROMSPEED_0527 speed
WHERESUBSTR(ab.vehicle_code,4)= speed.sim_codeAND ab.ON_LINE_NUM=speed.route_nameand ROWNUM<2)
WHERE mark ='B1';
这句话运行时,在MIN函数那里总是会提示缺少右括号的错误,但是检查后没有问题,请高人帮忙看一下!谢谢! 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询