先加一种子列:alter table 表名 add 列名 int identity primary key
这样他能唯一标志
完成后删除他就可以
这样他能唯一标志
完成后删除他就可以
解决方案 »
- 在ACCESS中能否实现HASHSTRING加密啊
- 这个SQL怎么写?
- 如何使用函数把一条记录中的某列拆成多条记录呢(大多数人都是把多行合并成某列,我的要求刚好相反)
- 要做查询,用时间做范围,但是年月日都是变量。在SQL语句中怎么写???
- 考察日期函数datediff 和 dateadd 以及 getdate() 函数
- 在sql server 2005 进行查询时查询的条件有中文 但返回不了结果 为什么
- sql server 获取本机IP
- 将 varchar 转换为数据类型 numeric 时出现算术溢出错误。
- sql删除语句的问题
- 求助foxpro的两个问题
- 新手提问:PB+MS SQL2000
- 个位大哥!!问一个数据表设计的问题
select distinct * into #tmp from 表名
delete 表名
insert into 表名select * from #tmp
drop table #tmp
select identity(int,1,1) as autoID, * into #Tmp from 表名
select min(autoID) as autoID into #Tmp2 from #Tmp group by 重复列
select * from #Tmp where autoID in (select autoID from #tmp2)
drop table #tmp
drop table #tmp2