子查询的值多于一个

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

    例如

update table1 set sure_status='2'
where img_satisfied<>'' and id in(select id from table0
where col1='31')
原文地址:https://www.cnblogs.com/wishbay/p/1973254.html