You can't specify target table 'myusertable' for ......in FROM clause

解决方法:使用临时表

DELETE  FROM   myusertable WHERE id>20  AND path IN (SELECT a.path FROM ((SELECT path FROM myusertable WHERE id<21) )a)

posted @   dami.van  阅读(143)  评论(0编辑  收藏  举报
努力加载评论中...
点击右上角即可分享
微信分享提示