use [FreeHost]
select * from FreeHost.FreeHost_Product_VPS_IP WHERE id in ( select id from FreeHost.FreeHost_Product_VPS_IP group by id having count(id)>1)
以上语句是判断数据库FreeHost表FreeHost.FreeHost_Product_VPS_IP ID编号是否重复(ID>1)指的是查找这个数据表中ID相同数字>1的数字。
use [FreeHost]
alter table FreeHost.FreeHost_Product_VPS_IP add constraint w_temp_pk_id primary key(id)
alter table FreeHost.FreeHost_Product_VPS_IP DROP w_temp_pk_id
此语句是指定数据库FreeHost]中的数据表 FreeHost.FreeHost_Product_VPS_IP ID号重新按序列排队,遇空跳过。比如123458910....