老大帮忙!!!SQL语句
<% function display(a,b,c,d,e,f)
{
if (c!=0)
{
c="cpuType ="+Request.Form("cpuType")+" and "
}
else{c="";}
if (d!=0)
{
d="cpuSpeed ="+Request.Form("cpuSpeed")+" and "
}
else{d="";}
if (e!=0)
{
e="screenSize ="+Request.Form("screenSize")+" and "
}
else{e="";}
if (f!=0)
{
f="price ="+Request.Form("price")+" and "
}else{
f=""
}
if (a!=0)
{
a="company ="+Request.Form("company")+" and "
}
else{a="";}
if (b!=0)
{
b="version ="+Request.Form("version")
}
else{b="";}
return c+d+e+f+a+b
}
%>
//////////////////////////////////////////////////
6个参数要组合成sql语句(参数如果为0,就不用考虑了),老大有时间的话,帮帮我!//
//////////////////////////////////////////////////