Home > Database > Mysql Tutorial > body text

删除SQL 某个表中重复的记录

WBOY
Release: 2016-06-07 14:56:33
Original
1256 people have browsed it

无详细内容 无 假如表为Mytableselect distinct * from into 临时表 from MyTabledelete from MyTable insert into MyTableslect * from 临时表 drop table 临时表

假如表为Mytable
select distinct * from into 临时表 from MyTable
delete from MyTable insert into MyTable
slect * from 临时表 
drop table 临时表
Copy after login
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