这是一个条件为子查询的更新语句,代码如下。
update a set meta_key=null
where post_id in(
select post_id from a
where meta_value=0.5
)and meta_key='start_see2'
UPDATE table_name set meta_value=''
where meta_key='start_see2' and
post_id in (select DISTINCT post_id from table_name where meta_value='0.5')