[求助]不能获取传递参数的问题
我光知道这个@在c#里能用,但不知道在VB里能不能用,我现在用VB编呢,说不能获取参数,我想大概是这出了问题.自己定义一个变量,让它的值等于数据库里的id值,然后根据这个变量从数据库里读数据.
Dim id As String = Request.QueryString("id")
Dim str As String = "select * from product where pro_id in(select pro_id from productlist where typeid=@id)"
Dim comm As SqlCommand = New SqlCommand(str, conn)
另外这条语句具体是什么意思啊?
comm.Parameters.Add("@id", id)

淘宝新到货: http://shop36082390. 电脑及配件/杀毒U盘/移动硬盘/减肥产品/切苹果器/剥蒜器/个性烟灰缸/装饰彩灯/雨伞/女包//手机座/极品铁观间茶叶/五层布衣柜/三洋/日立投影机
QQ:410243392 (常用)