【发布时间】:2011-06-23 12:14:00
【问题描述】:
我有一个这样的 sql
UPDATE A
SET A.TEMSILCI_KOD = 4
FROM S_MUSTERI A, S_TEKLIF B
WHERE A.TEMSILCI_KOD = 9
AND B.BAYI_KOD = 17
AND A.HESAP_NO = B.HESAP_NO
但我收到这样的错误
Error starting at line 8 in command:
UPDATE A
SET A.TEMSILCI_KOD = 4
FROM S_MUSTERI A, S_TEKLIF B
WHERE A.TEMSILCI_KOD = 9
AND B.BAYI_KOD = 17
AND A.HESAP_NO = B.HESAP_NO
Error at Command Line:9 Column:22
Error report:
SQL Error: ORA-00933: SQL command not properly ended
00933. 00000 - "SQL command not properly ended"
*Cause:
*Action:
ERROR 在哪里?
【问题讨论】:
-
多表
UPDATE适用于 SQL Server,但不适用于 Oracle。 -
你是在程序中这样做的吗?
-
RTFM,没有
FROM。
标签: sql oracle sql-update ora-00933