好赞!ASP微软的人真会写,写出的语句执行超慢!却被认为死循环?select * from table where a like '"&word&"%' 
union  all
select * from table where b like '"&word&"%'

解决方案 »

  1.   

    呵呵,那以后不要用ASP吧,我都用JSP
      

  2.   

    ZengMuAnSha(曾牧暗鲨)
    那样也不行啊?
      

  3.   

    select * from table where a like '"&word&"%' 
    full join
    select * from table where b like '"&word&"%'
      

  4.   

    SELECT * FROM iresep00 
    where res_creator like 'M%'
    union all
    Select * from iresep00
    where Res_modifier like 'L%'在21.7万上 找出1万5568行数据 花了22.753秒 在该字段没有建立索引 进行全表扫描 成本584我想你的问题不在于SQL语句