| 发表于:2007-12-14 14:19:473楼 得分:20 |
测试: create table a(a char(2),b int,c int); insert into a(b,c) values(1,2), (1,3), (2,4), (2,5), (2,6); create table b(h int,u char(2)); insert into b(h,u) values(1,'aa'), (2,'bb'); update a f set (f.a)=(select u from b where f.b=b.h) | | |
|