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

Mysql update 一个表中自己的数据

时间:2017-04-25 21:22:59      阅读:187      评论:0      收藏:0      [点我收藏+]

标签:bsp   nbsp   自己的   upd   table   min   pci   name   mysq   


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 一个表中自己的数据

标签:bsp   nbsp   自己的   upd   table   min   pci   name   mysq   

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

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