在SQL如何传多变量
sql="select top [变量] * from "+c+""
[变量]是从上张页面传来的数字。
c=request("testname")
参考答案:sql="select top "+a+" * from "+b+" where "+c+"="+d+" and ……"
变量是数字 只要写成 "+a+"
变量是字符串 要写成 '"+a+"'
sql="select top [变量] * from "+c+""
[变量]是从上张页面传来的数字。
c=request("testname")
参考答案:sql="select top "+a+" * from "+b+" where "+c+"="+d+" and ……"
变量是数字 只要写成 "+a+"
变量是字符串 要写成 '"+a+"'