发布网友 发布时间:2022-04-23 09:08
共4个回答
热心网友 时间:2022-04-12 15:15
sql server:
update a
set a.je2 = (select b.je2 from b
where a.id = b.id and a.yf = b.yf)
where a.id||a.yf in (select id||yf from b )
oracle:
update a
set a.je2 = (select b.je2 from b
where a.id = b.id and a.yf = b.yf)
where (id,yf) in (select id,yf form b )
热心网友 时间:2022-04-12 16:33
sqlserver:
update t set t.je2=z.je2 from a.dbo.第一个表表名 t,b.dbo.第二个表表名 r where t.id=r.id and t.yf=r.yf;
update t set t.je2=z.je2 from user01.dbo.test1 t,user02.dbo.test2 r where t.id=r.id and t.yf=r.yf;
热心网友 时间:2022-04-12 18:08
update A.表名 a set a.je2=(select b.je2 from B.表名 b where a.id=b.id and a.yf=b.yf)
热心网友 时间:2022-04-12 19:59
update A set je2=(select b.je2 from a,b where a.id=b.id and a.yf=b.yf )