关于查询排序的问题,大家看看好吗?
以下是查询的语句:<%
bianhao=request.Form("bianhao")
chepaihao=request.Form("chepaihao")
danwei=request.Form("danwei")
leixing=request.Form("leixing")
strsql="select * from studentinfo where Number<>''"
if leixing<>"ÇëÑ¡Ôñ" then
strsql=strsql & " and (Type like '" & leixing & "')"
end if
if bianhao<>"" then
strsql=strsql & " and (Number like '%" & bianhao & "%')"
end if
if chepaihao<>"" then
strsql=strsql & " and (Name like '%" & chepaihao & "%')"
end if
if danwei<>"" then
strsql=strsql & " and (Company like '" & danwei & "')"
end if
session("chaxun_jilu")=strsql
response.Redirect("infoquery1.asp")
%>
我想让查出来的信息都按number 进行降续排列,请问大家,order by number desc 这句话应该放在代码的哪个位置呀
知道的告诉我一声 谢谢了!