asp+sql存储过程变量赋值的问题(100分)

D

dxbo

Unregistered / Unconfirmed
GUEST, unregistred user!
Declare @wareID int,@sql nvarchar(500)
Select @sql="Select a,@wareID=b,c,d,e From tableA"
Execute(@sql)
If IsNumeric(@wareID)
 
可能是tableA取出的可能是一个记录集,而非一行记录。
 
Select @sql="Select a,"+@wareID + "=b,c,d,e From tableA"
 
谢谢楼上的。。
Select @sql="Select a,"+@wareID + "=b,c,d,e From tableA"
单独执行上面的没问题
关键是要执行Execute(@sql)这个。
就有问题了。
 

Similar threads

S
回复
0
查看
3K
SUNSTONE的Delphi笔记
S
S
回复
0
查看
2K
SUNSTONE的Delphi笔记
S
I
回复
0
查看
586
import
I
I
回复
0
查看
876
import
I
I
回复
0
查看
719
import
I
顶部