成功:
update user_shop t3 , (select distinct(t1.id) from user_shop t1,commn_pic t2 where t1.shop_id=t2.SJ_ID and t1.form_id=t2.form_id and zone-371600 between 0 and 100 order by t1.id) t4 set t3.user_set = 'detailInfo,picture0' where
t3.id=t4.id
语法错误:
update user_shop set USER_SET='detailInfo' WHERE id in(596,597,598)
(select id from user_shop where zone-371600 between 0 and 100 and
id not in (select t1.id from user_shop t1,commn_pic t2 where t1.shop_id=t2.SJ_ID and t1.form_id=t2.form_id and zone-371600 between 0 and 100) )
本文探讨了一段包含语法错误的SQL更新语句,并尝试解析其存在的问题。该语句涉及多个表之间的连接查询及条件筛选,旨在更新符合特定地理区域条件的记录。
8007

被折叠的 条评论
为什么被折叠?



