update em123,de123 set em123.sal=sal+1 7000,de123.dnam e='manager' where em123.eno=de123 .eno
missing set keyword
Collapse
X
-
Tags: None
-
You can not update two tables with one UPDATE query.
You have to split query into two queries.
Code:update em123 set em123.sal=sal+17000 where em123.eno in (select eno from de123)
If tables are rather big you can use EXISTS instead of INCode:update de123 set de123.dname='manager' where de123.eno in (select eno from eml23);
Comment