#42004/8/2 21:49:35
1、日期查询可以拆分的。
select * from table where year(datetime)="&request("year")&" and month(datetime)="&request("month")&" and day(datetime)="&request("day")&"
2、利用字符串组合来完成SQL的查询语句
sql="select * from table where id is not nulll"
if tt<>"" then
sql = sql &" and tt like '%"&tt&"%'"
end if
........
难人一个……