刚开始这样写,然后报了一个
[Err] 1093 - You can’t specify target table ‘’ for update in FROM clause
这个错误的原因是:更新这个表的同时又查询了这个表,查询这个表的同时又去更新这个表的同时查询这样会造成死锁
试了半天,终于成功了
You can't specify target table '' for update in FROM clause
猜你喜欢
转载自blog.csdn.net/qq_30667039/article/details/87936618
今日推荐
周排行