分享到:
发表于 2009-02-03 10:22:13 楼主 | |
insert into a values (1,1); insert into a values (2,1); insert into a values (3,1); insert into a values (4,null); insert into b values (1,10); insert into b values (2,1); insert into b values (4,40); insert into b values (5,50); commit; SQL> select * from a; ID V1 ---------- ---------- 1 1 2 1 3 1 4 SQL> select * from b; ID V1 ---------- ---------- 1 10 2 1 4 40 5 50 SQL> update a set a.v1=(select b.v1 from b where b.id=a.id) where a.id not in(select a.id from a,b where b.id=a.id and a.v1=b.v1); ERROR 1093 (HY000): You can't specify target table 'a' for update in FROM clause 在Oracle是不出错的 |
|
楼主热贴 |
针对ZOL星空(中国)您有任何使用问题和建议 您可以 联系星空(中国)管理员 、 查看帮助 或 给我提意见