码迷,mamicode.com
首页 > 数据库 > 详细

多表关联更新sql

时间:2017-07-27 18:19:56      阅读:169      评论:0      收藏:0      [点我收藏+]

标签:from   多表关联   and   表关联   sql   更新   select   min   多表   

 UPDATE S_fangyuanxinxi

SET wuyeleixing =
(SELECT s_dalou.yongtu
FROM s_dalou
WHERE s_fangyuanxinxi.loupanmingcheng = s_dalou.loupanmingcheng AND
s_fangyuanxinxi.donghao = s_dalou.mingcheng)

 

 

   

 

多表关联更新sql

标签:from   多表关联   and   表关联   sql   更新   select   min   多表   

原文地址:http://www.cnblogs.com/lantianhf/p/7246003.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!