09 2011 档案
根据父ID聚合
摘要:create table myTest_tt( id int identity(1,1), EID varchar(20), BID varchar(20), [name] varchar(30), [value] int)goinsert into myTest_tt select '10000001','101','一般性公共服务',0union select '10000001','101031','一般性公共服务1',100union select '10000001',&# 阅读全文
posted @ 2011-09-29 09:35 叮叮猫的编程世界 阅读(299) 评论(0) 推荐(0) 编辑
waitfor的使用
摘要:create table my_test( id int identity(1,1), [name] int)godeclare @theCount intset @theCount=1while @theCount<100begin insert into my_test values(@theCount) set @theCount=@theCount+1 waitfor delay '00:00:05'endwaitfor表示暂停后面的sql的执行time 表示到时间以后在执行而delay 每次执行延迟的时间同时需要注意的是 执行结果它会在完成整个sql的执行以后才 阅读全文
posted @ 2011-09-28 14:24 叮叮猫的编程世界 阅读(314) 评论(0) 推荐(0) 编辑


点击右上角即可分享
微信分享提示