select distinct ??
into #temp
from tabledelete tableinsert into table
select * from #temp
解决方案 »
- 将本地数据库中数据插入到远程数据库中
- 请高手来帮我解释以下你个语句怎么用啊!!谢谢!!
- 关于SQL语句的问题
- 一统计题的疑问
- 一条sql分类语句
- 联系多表查询问题?
- 就这样被你征服!sql2000启动问题!
- 数据库维护计划运行出错.
- 在sqlserver里怎样从一个数据库中把某个表的数据到入另外数据库中的某个表中???
- Ado with ms datagrid control (or ms datalist control)
- 请教高手: SQLserver7.0中有没有类似inStr(“x,x”, ",")定位字符位置的函数, 如果没有我们怎幺分割字符: 例如下面的示例:
- to:whaisheng 希望你能看到
drop table table1;
select * into table1 from table2;
drop table table2;最老土的办法。
select distinct * into table2 from table1;
delete table1;
insert into table1 select * from table2;
drop table table2;
select distinct * into #temp from tabledelete tableinsert into table select * from #temp