首頁  >  文章  >  資料庫  >  关于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