SQL 语句 通过外联表更新一个字段
想把另外一张表的数据,通过一定条件,更新当前表。
这个语句还是比较怪的, 所以记录一下。
update 当前表 set 条件1,条件2 From 当前表,外联表 where 条件1,条件2
update a set a.fdProdImage=b.pictureb from fa_product a,temp_product b
where a.fdprodid = b.proid
posted on 2010-07-14 15:20 Cheney Hao 阅读(1585) 评论(0) 编辑 收藏 举报