昆山相信电子有限公司:asp的问题 关于查询变量

来源:百度文库 编辑:高校问答 时间:2024/04/28 11:21:53
要实现这句
select * from table where id='aa'
把字段aa给一个变量
strid="aa"
上面的语句该怎么写?
这样的只能查询到
select * from table where id=1
不能查询到
select * from table where id='1'
是不是数据类型有问题 ?
要怎么改?

"select * from table where id=" & strid