删除重复记录
更新时间:2006年08月24日 00:00:00 作者:
我们经常在数据库中有重复的记录这时候我们希望删除那些重复的记录
你不要告诉我你是一条条手动删除的哈:
select distinct * into newtable form tablename
drop table tablename
select * into table from newtable
drop table newtable
思路好了就好做.
你不要告诉我你是一条条手动删除的哈:
select distinct * into newtable form tablename
drop table tablename
select * into table from newtable
drop table newtable
思路好了就好做.
相关文章
sql server中Select count(*)和Count(1)的区别和执行方式
在SQL Server中Count(*)或者Count(1)或者Count([列])或许是最常用的聚合函数。很多人其实对这三者之间是区分不清的。本文会阐述这三者的作用,关系以及背后的原理2015-02-02
SQL SERVER连线查询数据源IP地址及开启SQL的IP地址连线方法
这篇文章主要介绍了SQL SERVER连线查询数据源IP地址及开启SQL的IP地址连线方法,文中通过图文结合的形式给大家介绍的非常详细,具有一定的参考价值,需要的朋友可以参考下2024-06-06


最新评论