专注于互联网--专注于架构

最新标签
网站地图
文章索引
Rss订阅

首页 »数据库 » mysql删除字段:mysql删除表中某一字段重复的记录 »正文

mysql删除字段:mysql删除表中某一字段重复的记录

来源: 发布时间:星期三, 2008年12月24日 浏览:175次 评论:0
比如表:event(id (10) auto_increment primary key
sid (10)not null
detail text)

我想删除表event中sid重复记录请问有没有这样SQL语句?或是通过其它思路方法?
[
alter ignore table event add unique index idu_sid (sid);
alter table event drop index idu_sid;



0

相关文章

读者评论

发表评论

  • 昵称:
  • 内容: