宴清都.绣幄鸳鸯柱:ASP中怎么样查询200到500价格的商品?

来源:百度文库 编辑:神马品牌网 时间:2024/05/03 03:22:14
能写出具体格式吗?最好是用where 和between 都写一个.先谢谢各位了..
那价格是未知参数呢?比如request("OK")

set rs=server.createobject("adodb.recordset")
sql="select * from 商品 where 商品='品名' and 价格>200 and 价格 < 500"
rs.open sql,conn,1,3

strsql="select * from 表 where 价格>200 and 价格<500"
strsql="select * from 表 where 价格 between 200 and 500"
strsql="select * from 表 where 价格=" & cint(request("ok"))