首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 数据库 > oracle >

ORA-00933: SQL command not properly ended

2014-01-28 
Update sms_Mo_Port_Log Set usertime Trunc(Sysdate-1) + (13*60+35) /(24*60) From sms_sendmsg_ago a,

Update sms_Mo_Port_Log
Set usertime = Trunc(Sysdate-1) + (13*60+35) /(24*60)
From sms_sendmsg_ago a,sms_Mo_Port_Log b
Where a.msgid_db=b.msgid And a.usertime = Trunc(Sysdate-1);

报这样的错误:
ORA-00933: SQL command not properly ended


------解决方法--------------------------------------------------------
Update sms_Mo_Port_Log b
Set b.usertime = Trunc(Sysdate-1) + (13*60+35) /(24*60)
Where exists (select 'X ' from sms_sendmsg_ago a
where a.msgid_db=b.msgid
And a.usertime = Trunc(Sysdate-1));

        

热点排行