这是我到目前为止所拥有的
BEGIN
UPDATE t1
set t1.LANGUAGE_ID = (case NETWORK.NID
when 11 then 10
else 7
end)
FROM PROFILE, NETWORK where
PROFILE.STATUS in ('A','U','S','H','I')
AND PROFILE.MID = t1.MID
AND NETWORK.MID = t1.MID
AND t1.IS_DELETED = 'N'
END;
得到错误:
"ORA-06550: line 7, column 21:
PL/SQL: ORA-00933: SQL command not properly ended
ORA-06550: line 2, column 18:
PL/SQL: SQL Statement ignored
ORA-06550: line 12, column 4:
PLS-00103: Encountered the symbol "end-of-file" when expecting one of the following:
( begin case declare end exception exit for goto if loop mod
null pragma raise return select update while with
<an identifier> <a double-quoted"
我想在 t1.is_deleted='N' 时更新 t1,并且配置文件中的相同 mid 具有状态 AUSHI。所有表格都有一个中间列。任何想法为什么我会收到此错误?