独照我想和你唱嗨唱版:ASP中怎么样查询200到500价格的商品?

来源:百度文库 编辑:高考问答 时间:2024/04/30 16:46:04
能写出具体格式吗?最好是用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"))