开心

文章分类 -  数据库

摘要:if Exists (Select * from sys.Objects where object_id=object_id(N'dbo.TestRowToColumn') and type in (N'U') )drop table dbo.TestRowToColumngo create tab 阅读全文
posted @ 2016-06-16 22:06 大喜 阅读(422) 评论(0) 推荐(0)
摘要:1.select count(*) 2.select count(1)1.2.返回结果都 一样,表没有主键,count(1)比count(*)快,但如果表只有一个字段,count(*)最快。它们包括对null 的统计。如果有主键,count(主键)最快。count(column)不包括对null 的... 阅读全文
posted @ 2016-01-08 16:47 大喜 阅读(131) 评论(0) 推荐(0)

坦然 会增进信任 - 信任 感情才会升华