The Perfect Day

分享技术,编写未来

  博客园 :: 首页 :: 博问 :: 闪存 :: 新随笔 :: 联系 :: 订阅 订阅 :: 管理 ::

2006年11月20日

摘要: scope_indentity() 返回插入到同一作用域中(存储过程,.......)的indentity列内的最后一个indentity值例: declare @dt table( _id int identity(1,1), _name char(10))insert into @dt (_name) values('zhang')insert into @dt (_name) value... 阅读全文
posted @ 2006-11-20 22:16 StephenJu 阅读(497) 评论(0) 推荐(0) 编辑

摘要: 注:This method gets the record count much faster than select count(*) from table_name1、一般情况下,可以通过聚合函数Count实现查询出记录的总数 select count(*) as 记录总数 from table_name2、也可以通过查询系统表sysindexes实现 select row... 阅读全文
posted @ 2006-11-20 22:03 StephenJu 阅读(389) 评论(0) 推荐(0) 编辑