这样的语句怎么写? update table1set unit=table2.unitidfrom table1,table2where table1.unit=table2.unitname 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 update table1set unit=table2.unitidfrom table2where table1.unit=table2.unitname也可以 如何查询系统存储过程的参数 sql更新的问题 求一sql语句 求一SQL语句,高手指教 一张表中相同ID所用数量总和 关于VB+SQL Server的问题!!!!!! 游标! 请教:SQL server 中SQL语句的自动增长列问题 高分求教,各位高手请进!!!在线等待 想做一个分页的程序,如何获得数据库m行到n行的数据 外键问题,请教各位大侠,在线等待 新!新!新!update触发器的问题!
set unit=table2.unitid
from table2
where table1.unit=table2.unitname
也可以