求一个 两表关系更新的 t-SQL 语句 !!!!!!!!!!!!!!!!!!!急!!!!!!!!! update table2 set orderid=table1.orderid from table1 where table1.goodsid=table2.goodsid 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 update table2 set orderid=(select orderid from table1 where table1.goodsid=table2.goodsid) update table2 set orderid=b.orderid from table2 a join table1 b on a.goodsid=b.goodsid 请教关于自定义函数的问题 SQL分页问题 SQL怎样查询出每天刷卡次数大于3次的人员刷卡记录 在工作遇到了一个问题,大家有什么好方法 完善一下! SQL语句问题,高手帮忙! vc++ 使用ADO连接sqlserver 如何获取记录条数 在C#的DataSet中可以进行多表查寻吗? sql汇总计算问题。请指教。。。 高分求助:我这里的触发器该怎么写? 为什么从数据查询出的数据带星期啊 要怎么解决 请推荐几本关于数据库的好书 有关外键的一些问题,请指教!
update table2
set orderid=b.orderid
from table2 a join table1 b on a.goodsid=b.goodsid