我一般是这样操作的,呵呵!create temporary table tmp select * from your_talbe group by sjhm order by id;
truncate your_table;
insert into your-table select * from tmp order by id;
drop table tmp;
truncate your_table;
insert into your-table select * from tmp order by id;
drop table tmp;
解决方案 »
- 触发器里含游标怎么写?
- 求一个简单而难的SQL语句
- help!!!用mysql建立工厂物资管理数据库、、、
- mysql与mssql之间数据更新
- MySQl怎么建立个用户连'information_schema'都不能访问
- 如何调试存储过程?有什么好的工具吗?
- 有关MySQL5.1版本在linux 4下的安装问题,急!!!
- 在linux下把mysql的MyISAM的表(frm,MYD,MYI)拷过去后出现read only,请教
- limit不支持内层嵌套。。。。。。。。。。。。。。
- pt-query+anemometer问题
- C#,vb.net中怎么连接mysql
- 求一MYSQL样本数据库,谢谢!!
可惜不支持