update 表1的字段B='aa',字段c='bb',当表1字段A的值=表2字段A的值 如何update 表1的字段B='aa',字段c='bb',当表1字段A的值=表2字段A的值 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 update 表1 set 字段B='aa',字段c='bb' from 表2 where 表1字段A的值=表2字段A的值 update tb1 set b = 'aa' , c = 'bb'from tb1 , tb2 where tb1.a = tb2.a UPDATE A SET 字段B='aa', 字段C='bb'FROM tb1 AS A JOIN tb2 AS B ON A.字段A=B.字段A 我觉得这样就可以了不用再在from里面 把"表1"再列出来.我一直都这么用的 update tb1set B='BB',C='CC'from tb2 where tb1.A=tb2.A update table1set B='BB', C='CC'from table1 join table2on table1.A = table2.A update a set 字段b='aa', 字段c='bb'where a.字段a in (select 字段a from b) update tb1 set b = 'aa' , c = 'bb'from tb1 , tb2 where tb1.a = tb2.a 关于运行sql语句脚本的问题 如何 提高 数据库技术? sql写法 datetime空值时的问题 win2003 下安装Sql Server 如何将“2003 十二月 23 15:09AM ”的SQL6.5的日期格式改为"2003-12-23 15:09:09.250"? 一个数据库表最多可以多少人同时打开修改 十万火急,PB调用存储过程问题,急!急!急! 求救!SQL Server2000个人版在Win98和WinXp都安装不进去了,详情请看里面...谢谢! SQLSERVER的导出数据问题? 关于视图的问题,高手请进! 求一条 sql 语句 :找出表中最新的一条记录
update tb1
set b = 'aa' , c = 'bb'
from tb1 , tb2
where tb1.a = tb2.a
字段B='aa',
字段C='bb'
FROM tb1 AS A
JOIN tb2 AS B
ON A.字段A=B.字段A
不用再在from里面 把"表1"再列出来.
我一直都这么用的
update tb1
set B='BB',C='CC'
from tb2
where tb1.A=tb2.A
set
B='BB',
C='CC'
from table1 join table2
on table1.A = table2.A
字段b='aa',
字段c='bb'
where a.字段a
in
(select 字段a from b)
set b = 'aa' , c = 'bb'
from tb1 , tb2
where tb1.a = tb2.a