2024-10-31 11:20:23
#1093 - You can't specify target table 'pre_common_member_count' for update in FROM clause
update pre_common_member_count set a=b 就可以了 想复杂了
UPDATE pre_common_member_count A SET my_a=(SELECT my_b FROM ( SELECT my_a,uid FROM pre_common_member_count) B WHERE B.uid=A.uid )
你第二个方法.没试.应该可以.但我这个语句也可以哟.因为mysql不能操作同一个表. 所以.变通了下
2024-10-31 08:18:17
2024-10-31 09:37:50
2024-10-31 11:20:20