sqlserver 循环 连接符实例

declare @a int
set @a=3
while(@a<100)
	begin
		insert into master(id,name)values(@a,'dd'+ convert(varchar(10),@a))
		set @a=@a+1
	end


select 'a' + 'b'

 注意:SQL SERVER连接字符串为+,不是&。

refurl:http://zhidao.baidu.com/question/229008003.html

猜你喜欢

转载自wandejun1012.iteye.com/blog/1728165