对数据库某列进行UPDATE操作,在过滤条件中对ID进行限制时候,“=”号要换成IN,否则会报错。
例如
update table1 set sure_status='2'
where img_satisfied<>'' and id in(select id from table0
where col1='31')
where img_satisfied<>'' and id in(select id from table0
where col1='31')
对数据库某列进行UPDATE操作,在过滤条件中对ID进行限制时候,“=”号要换成IN,否则会报错。
例如