文章分类 - 数据库
摘要: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
阅读全文
摘要:1.select count(*) 2.select count(1)1.2.返回结果都 一样,表没有主键,count(1)比count(*)快,但如果表只有一个字段,count(*)最快。它们包括对null 的统计。如果有主键,count(主键)最快。count(column)不包括对null 的...
阅读全文
浙公网安备 33010602011771号