關鍵字:SQL 100w數據 1秒鐘
關于SQL查詢效率,100w數據,查詢只要1秒,與您分享:
機器情況:
p4: 2.4
內存: 1 G
os: windows 2003
數據庫:
SQL Server 2000
目的: 查詢性能測試,比較兩種查詢的性能
SQL查詢效率 step by step
-- setp 1.
-- 建表
create table t_userinfo
(
userid int identity(1,1) primary key nonclustered,
nick varchar(50) not null default '',
classid int not null default 0,
writetime datetime not null default getdate()
)
原文轉自:http://www.anti-gravitydesign.com