Home > Database > Mysql Tutorial > body text

关于mysql delete的问题_MySQL

WBOY
Release: 2016-06-01 13:51:45
Original
808 people have browsed it

由于mysql数据库的相关内部问题

导致delete from table where col not in (select col from table group by xx)

会提示报错

我们要做的是

create table tmp selete col from table group by xx;

delete from table where col not in (select col from tmp);

drop table tmp;

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