如何使用其他表中的值更新表中的多行? [英] How to update multiple rows in table using values from other table ?
本文介绍了如何使用其他表中的值更新表中的多行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好先生,我想更新我的sql表中的多行..从其他sql表中选择记录。使用sql查询或存储过程更新此记录的方法是什么?
hello Sir, I want to update Multiple rows in my sql table.. with records selected from other sql table. what is the way to update this records using sql query or stored procedure ?
推荐答案
您可以同时使用连接和更新的组合。
例如
You can use a combination of join and update together.
For e.g
UPDATE
tableA
SET
A.columnA = B.ColumnA
FROM
tableA A
JOIN
tableB B ON A.columnB = B.columnB
您好,
查看这些....
我想更新n个行项目值。 [ ^ ]
如何在oracle中编写FOR UPDATE语句以将值设置为列 [ ^ ]
希望这些能帮到你。
干杯
Hi,
Check These....
I want to update n number of row item value.[^]
How to write FOR UPDATE statement in oracle for setting value to a column[^]
Hope these will help you.
Cheers
这篇关于如何使用其他表中的值更新表中的多行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文