strsql="city="&chenshiidif sjtyep="0" or isnull(sjtyep) or trim(sjtyep)="" then
else
  strsql=strsql&" and  en_hanye='"&sjtyep&"'"
end if  if sjname<>"" then
    strsql=strsql&" and en_name like '%"& sjname &"%'"  
 
  end if
  if huanwei<>"" then
    strsql=strsql&" and en_huanwei like '%"& huanwei &"%'"  
  end if
我只知道这种查询效率比较低,听说写成子查询会效率会高很多,请高手指教