Home > Backend Development > PHP Tutorial > php delete select 的有关问题

php delete select 的有关问题

WBOY
Release: 2016-06-13 13:04:21
Original
907 people have browsed it

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)

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template