当前位置:
代码迷
>>
Oracle开发
>> 多表连接有关问题
详细解决方案
多表连接有关问题
热度:
45
发布时间:
2016-04-24 07:41:40.0
多表连接问题
有两张表A和B,关联字段为Barcoder,现在要把A表中的AutoID更新到B表中的IDMain中,请写出SQL更新语句
A:
AutoID BarCoder
1 12345
2 56789
B:
IDMain BarCoder
null 12345
null 12345
null 12345
null 56789
null 56789
------解决方案--------------------
探讨
UPDATE B SETB.IDMain = A.AutoID WHEREB.BarCoder = A.BarCoder
查看全文
相关解决方案