且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用来自另一个表的数据进行一些计算来更新一个表的多行.

更新时间:2023-01-08 12:28:30

您好,

将更新与联接一起使用

http://geekswithblogs.net/faizanahmad/archive/2009 /01/05/join-in-sql-update--statement.aspx [
Hi,

use update with joins

http://geekswithblogs.net/faizanahmad/archive/2009/01/05/join-in-sql-update--statement.aspx[^]

Hope this helps.


您可以通过查询来执行此操作,但是如果您使用存储过程,那就麻烦了,因为您必须使用联接和子查询来创建非常复杂的查询.
U can do this by query but it is batter if u use stored procedure because u have to use join and sub-query which create query very complex.