declare @Hid varchar(8000)
select @hid =@hid+字段名 from tablename
select @hid
这样就可以了