如果是查询传入的变量,则如下:
strau=request.form("author")
strsql="select * from book whereauthor=’"&strau&"’"
如果查询的是数字,则:
intID=request.form("id")
strsql="select * from book where id="&intID
strau=request.form("author")
strsql="select * from book whereauthor=’"&strau&"’"
如果查询的是数字,则:
intID=request.form("id")
strsql="select * from book where id="&intID