軟件測試開發技術SQL查詢效率:100w數據查詢只需要1秒鐘

發表于:2009-10-16來源:作者:點擊數: 標簽:軟件測試SqlsqlSQL效率
軟件測試開發技術SQL查詢效率:100w數據查詢只需要1秒鐘 SQL數據庫

關鍵字: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

国产97人人超碰caoprom_尤物国产在线一区手机播放_精品国产一区二区三_色天使久久综合给合久久97