SQL优化[42]

[入库:2005年8月18日] [更新:2007年3月24日]

本文简介:选择自 fly_miss 的 blog

@strwhere  varchar(1500) = ''  -- 查询条件 (注意: 不要加 where)

as

declare @strsql   varchar(5000)       -- 主语句

declare @strtmp   varchar(110)        -- 临时变量

declare @strorder varchar(400)        -- 排序类型

 

if @docount != 0

  begin

    if @strwhere !=''

    set @strsql = "select count(*) as total from [" + @tblname + "] where "+@strwhere

本文关键:SQL优化
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top