I'm the gatekeeper of my own destiny

导航

子查询的值多于一个

    对数据库某列进行UPDATE操作,在过滤条件中对ID进行限制时候,“=”号要换成IN,否则会报错。

    例如

update table1 set sure_status='2'
where img_satisfied<>'' and id in(select id from table0
where col1='31')

 

posted on 2011-03-07 09:33  Wishbay  阅读(255)  评论(1编辑  收藏  举报