zz_lgy

  博客园 :: 首页 :: 新随笔 :: 联系 :: 订阅 :: 管理 ::

1。创建表结构相同的临时表

2。将去掉重复记录的子查询添加到临时表中

3。删除原来的表

4。重命名临时表到原来的表

1、create table client_old like client

2、insert into client_old
select distinct *from client  group by mac

3、drop table client

4、rename table client_old to client

posted on 2011-01-25 12:56  zz_lgy  阅读(193)  评论(0)    收藏  举报