首页 > 数据库技术 > 详细

Mysql update 一个表中自己的数据

时间:2017-04-25 20:32:13      阅读:231      评论:0      收藏:0      [点我收藏+]


update  table ucf,

            table t2

                set ucf.pcid = t2.pcid

    where

           t2.name = ‘liming‘

    and t2.gid= ucf.gid

    and ucf.id in(474,475,479,482,457,375,461,406,373,374);

Mysql update 一个表中自己的数据

原文:http://www.cnblogs.com/cbugs/p/6764105.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!