![]() |
#2
shulei5215212007-08-19 07:19
|
declare @StartID int
declare @strWhere nvarchar(1000)
set @strWhere='id=2'
select @StartID=ID from gwlz_gw_table g where id=2
select @StartID
select @strWhere
我想把代码中的 id=2 换成 @strWhere 该怎么弄啊
我的最终目的是把查询出的编号赋给 @StartID 这个变量