php delete select 的有关问题
程序员文章站
2024-01-05 18:50:04
...
php delete select 的问题
delete from sinykk_love_web where id in (select id from sinykk_love_web group by site_url having count(site_url)>1)
1093 - You can't specify target table 'sinykk_love_web' for update in FROM clause
改成如下就好
delete from sinykk_love_web where id in (select temp.id from (select m. id,m.site_url from sinykk_love_web m)? temp group by temp.site_url having count(temp.site_url)>1)
相关文章
相关视频
上一篇: SQL你必须知道的
下一篇: 删除oracle当前用户下的所有对象