如何用sql删除表中相同的纪录?????
解决方案 »
- Delphi6突然不能使用了
- 一个动态改变文件夹和文件图标的问题[有图]……
- delphi 在读写一个Excel时,用户打开其他的Excel文件并关闭,会出现OLE error 800A01A8的错误,如何解决?
- 如何保证远程数据传送的安全性?
- DLL封装MDI主窗体的问题,请高手指点?
- ●●●●为了自己方便,也为大家方便,建立了一个DELPHI程序员QQ群:8194759●●●●
- 简单的异常处理问题,散分!
- 用Delphi编写CORBA数据库应用系统到底有无可行性?
- 前天程序编译运行都好的,今天却出现exception eAccessViolation的错误,请高手帮忙,50分奉送。
- 没人告诉怎么做
- delphi的基本函数(xor,shl,shr)的用法
- TDateTime 变量能做循环吗?
tt
where id in (
select id from
(
select id ,count(id) from tt group by id
) as one
where id > 1
)
就OK了!
楼上的就行
truncate table 表
select * into 表 from #temp
drop table #temp
where newfield not in(
select min(newfield) from 表 group by 除newfield外的所有字段
)alter table 表 drop column newfield
select distinct * into #temp from 表
truncate table 表
select * into 表 from #temp
drop table #temp
select * into 表 from #temp
为: insert into 表 select * from #temp