All articles| All Pictures| All Softwares| All Video| Go home page| Write articles| Upload pictures

Reading number is top 10 articles
ASP.NET数据库编程快速入门之技术慨述_[Asp.Net教程]
ASP.Net环境下使用Jmail组件发送邮件_[Asp.Net教程]
C#中多维数组的声明
SQL Server无法打开用户默认数据库_[SQL Server教程]
提高PHP程序运行效率的四个小方法_php资料_编程技术
ASP.NET4实用方法Url,Routing的使用_[Asp.Net教程]
查询中where和having的区别_[SQL Server教程]
理解动态网页技术PHP与数组的应用_php资料_编程技术
掌握Ajax 第1部分-Ajax简介_[AJAX教程]
Visual,C#2005快速入门之基础语法_[Asp.Net教程]
Reading number is top 10 pictures
Fan bingbing black wings for platform and DanLuoWang believes beauty1
男人帮杂志里的惹火性感美女2
Gang rape
The real super beauty7
A resort photographed beautiful young woman change clothes process vomiting blood2
天安门景物系列(一)
The girl of like self-time
陪睡门马睿菈自曝写真 称首拍大尺度照片1
Absolutely shocked. National geographic 50 animal photographys6
China's first snake village1
Download software ranking
linux初级教程
虚拟机5.5.3版
Boxer's Top ten classic battle7
dreamweaver8中文版
jBuilder2006
传奇私服架设教程
C#编程思想
Unix video tutorial6
Boxer's Top ten classic battle10
Boxer Classic video1
归海一刀 published in(发表于) 2014/2/1 0:21:52 Edit(编辑)
有用的SQL语句(删除重复记录,收缩日志)_[SQL,Server教程]

有用的SQL语句(删除重复记录,收缩日志)_[SQL,Server教程]

有用的SQL语句(删除重复记录,收缩日志)_[SQL Server教程]

删除重复记录,将TABLE_NAME中的不重复记录保存到#TABLE_NAME中


select distinct * into #table_name from table_name
delete from table_name
select * into table_name from #table_name
drop table #table_name


与此相关的是“select into”选项,可以在数据库属性
对话框中,勾起来此项,或者在Query Analyzer中执行
execute sp_dboption 'db_name','select into','true'
开启。默认值是关闭的。



*************************************
收缩事务日志(多次执行)


backup log register with NO_LOG
backup log register with TRUNCATE_ONLY
DBCC SHRINKDATABASE(register)


来源:网络







添加到del.icio.us 添加到新浪ViVi 添加到百度搜藏 添加到POCO网摘 添加到天天网摘365Key 添加到和讯网摘 添加到天极网摘 添加到黑米书签 添加到QQ书签 添加到雅虎收藏 添加到奇客发现 diigo it 添加到饭否 添加到飞豆订阅 添加到抓虾收藏 添加到鲜果订阅 digg it 貼到funP 添加到有道阅读 Live Favorites 添加到Newsvine 打印本页 用Email发送本页 在Facebook上分享


Disclaimer Privacy Policy About us Site Map

If you have any requirements, please contact webmaster。(如果有什么要求,请联系站长)
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.