帮忙看一下这句asp代码

来源:百度知道 编辑:UC知道 时间:2024/05/16 12:42:08
ic=request.form("ic")
name=request.form("name")
exec="select * from sa where ic='"+ic+"' and name='"+name+"'

主要是最后一句,怎么改

exec="select * from sa where ic='"&ic&"' and name='"&name&"' "

建议"+"换成"&"

最好貌似确个双引号

这句应该没有错误吧??如果出错,把错误信息帖上来看看

asp里面的vbscript,连接字符串用“&“而不是用”+“