[Err] 1093 - You can't specify target table 'user' for update in FROM clause
摘要:
例: UPDATE `X` SET A='' WHERE B IN ( SELECT B FROM X WHERE XXX ); 会出现查询错误,调整为如下即可:(红色为查询语句,黑色部分为新增) UPDATE `X` SET A='' WHERE B IN ( SELECT u.B FROM ( 阅读全文
posted @ 2020-03-28 07:11 范兵 阅读(744) 评论(0) 推荐(0) 编辑