求用一个表更新另一个表的SQL语句 update a set a.status=b.statusfrom table1 as a inner join table2 as b on a.id1=b.id1 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 update a set a.status=b.statusfrom table1 a,table2 bwhere a.id1=b.id1 upadte table1 set table1.status =table2.statusfrom table1,table2where table1.idl=table2.idl update table1 set a.status = b.statusfrom table1 a inner join table2 b on a.idl = b.idl update a set a.status=b.statusfrom table1 a,table2 bwhere a.id1=b.id1 update table1 set status=table2.status from table2 where table1.id1=table2.id1 你可以试一下:update table1 set table1.status=table2.status where table1.id=table2.id sql查询(在线等 下班前结贴) 如何查询出某个包含特定字符串的字段 有没有道理:where子句使用参数查询会导致索引失效? 散分。才上了5天班,被老板炒了,告诉我经验不足!!!闷!!!改行.... 请教高手,SQL导入时候报错 请问数据模型和数据模式有什么区别呀? 两个MS-SQL数据库之间应该如何完全复制啊? SQL 2000返回的错误信息哪里储存? 求助:SQL运行效率问题~ 一个表中的外健必须是另一个表中的主健吗? 为什么last这个函数不能用? sql 多表连接的查询问题
from table1 a,table2 b
where a.id1=b.id1
from table1,table2
where table1.idl=table2.idl
from table1 a inner join table2 b
on a.idl = b.idl
from table1 a,table2 b
where a.id1=b.id1
from table2
where table1.id1=table2.id1
update table1 set table1.status=table2.status where table1.id=table2.id