ws2811电路图:asp 问题

来源:百度文库 编辑:高校问答 时间:2024/05/09 04:32:21
Server.CreateObject("ADODB.Recordset")
sql="select * from biao order by ID DESC "
rs.Open sql,conn,1,1

如果我想将第二行中的biao作为变量,在最前面用request.form("")接收前一页传来的表名变量,然后打开对应的表,写成这样的形式
.
.
.
biao=request.form("biao_name")
Server.CreateObject("ADODB.Recordset")
sql="select * from " & biao & " order by ID DESC "
rs.Open sql,conn,1,1
.
.
.
可是却提示这一行有错误sql="select * from " & biao & " order by ID DESC " 提示不支持所用属性。有谁知道应该怎样写才正确吗?

??VB吗?

如果用C#
写成
sql="select * from " + biao + " order by ID DESC ";
是可以的

所以可能还是某处语法问题
不是数据库问题