0 0

谁会 求 解决 急5

DB2 怎么把两张有主外键的表  A  ,B 
把 B 表中的字段的值  赋给 A 表中的某一列呢
2014年6月24日 16:54

3个答案 按时间排序 按投票排序

0 0

update A set AC=(select BC from B where A.key=B.key)

2014年6月30日 22:41
0 0

select a.id as id, a.name as name from table1 a
union all
select b.id as id, b.name1 as name from table2 b

2014年6月25日 17:19
0 0

update student s,sturesult t set s.result=t.result where s.stuid=t.stuid

student
stuid
result

sturesult
id
stuid
result

2014年6月24日 17:25

相关推荐

Global site tag (gtag.js) - Google Analytics