
SQL
chaoa888
这个作者很懒,什么都没留下…
展开
-
SQL 执行插入1000万条数据操作 几十秒内!
alter database test set recovery BULK_LOGGED goinsert into aaa select id=a.id+b.id+c.id+d.id +e.id +f.id+g.id from( select id=0 union all select 1 union all select id=2 u转载 2012-03-15 14:38:42 · 2555 阅读 · 0 评论 -
百万数据查询测试 只需1秒--Sql语句效率测试 经典
p4: 2.4内存: 1 Gos: windows 2003数据库: ms sql server 2000目的: 查询性能测试,比较两种查询的性能SQL查询效率 step by step-- setp 1.-- 建表create table t_userinfo(userid int identity(1,1) primary key noncl转载 2012-03-15 11:30:02 · 822 阅读 · 0 评论 -
SQL 的异常信息的捕获
在SQL Server 数据库中捕获异常信息的语句:begintrydeclare @i intset @i=0if @i/0=0 print '结果为0'end trybegincatch print error_message()// 输出异常信息end catch转载 2012-07-24 14:31:53 · 979 阅读 · 0 评论