查询其实也是个循环,简单的例子介绍
declare @Name varchar(120)set @Name=''select top 12 @Name=@Name+Column_Name from Sortprint @Name