[求助]数据查询问题
我想查询数据库中的前n条记录,但我想让n的值为输入用户提交的值.n=request("num")
select top n * From alldata_news where (url='' or url is null) and xlbid="&id&" order by id desc "
这样做说top附近有错误,我想应该是n不能为变量的原因,有别的方法吗?哪位大哥知道,请次教.
2007-06-26 09:24
2007-06-26 10:01

2007-06-26 10:17