我有一些sql语句:
SELECT *
FROM OSOBA o
LEFT JOIN DOKLAD d on d.ID_OSOBA = o.ID_OSOBA
WHERE o.AIFO like '2D5C%'
AND o.PLATNOST = 0
SELECT *
FROM OSOBA o
WHERE o.AIFO like '2D5C%'
AND o.PLATNOST = 0
FOR UPDATE OF o.ID_OSOBA
SELECT *
FROM OSOBA o
LEFT JOIN DOKLAD d on d.ID_OSOBA = o.ID_OSOBA
WHERE o.AIFO like '2D5C%'
AND o.PLATNOST = 0
FOR UPDATE OF o.ID_OSOBA
第一个和第二个语句都可以。但最后我得到了 ora-00918。我不知道为什么。在 FOR UPDATE 我定义了表的前缀请帮助