I have some sql statement:
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
first and second statements are OK. But in last I got ora-00918. I have no idea why. In FOR UPDATE I defined prefix of table please help