关于用DW做联表查询的问题~Help!
[quote][b]下面引用由[u]orphen1758[/u]在 [i]2003/05/14 12:11pm[/i] 发表的内容:[/b]
select * from lunwen where title=&request("title")& and writer=&request("writer")& and nianfen=&request("nianfen")
[/quote]
select * from lunwen where 1=1
if title<>"" then
sql = sql &" and title = '" & title &"'"
end if
......(有多少查询条件就写多少个这样的语句)