首页  >  文章  >  数据库  >  关于mysql delete的问题_MySQL

关于mysql delete的问题_MySQL

WBOY
WBOY原创
2016-06-01 13:51:45772浏览

由于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;

声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn