阿根廷跳舞干起来:asp中sql语句的问题
来源:百度文库 编辑:神马品牌网 时间:2024/05/04 19:20:31
在asp中
sql="select * from table where new=t"
这句错误在哪里?
table表中new是字符型字段。
sql="select * from table where new=t"
这句错误在哪里?
table表中new是字符型字段。
上面仁兄都是错的,
我是专搞asp的
正确写法是这样的哦
sql="select * from table where new='"&t&"'"
字符型都得这样写才行!'"&t&"'
字符串要引号
@t
因为它是变量。
sql="select * from table where new="+t
sql="select * from table where new='t'"
sql="select * from table where new="&t