比如 int i=50;
selcet * from b where xx>i
实际上就是找出XX大于50的记录.
这里的i要如何修饰,就像如果string是'"+ i +"'这种形式.一时忘了,请帮帮忙.
selcet * from b where xx>i
实际上就是找出XX大于50的记录.
这里的i要如何修饰,就像如果string是'"+ i +"'这种形式.一时忘了,请帮帮忙.
declare @i int
select @int=100
exec ('select * from b where xx>' + i)