--N行數據
select job_name from dbo.JobDetail
--將N行數據合併成一行顯示
declare @temp nvarchar(200)
set @temp=''
select @temp=@temp+job_name from dbo.JobDetail
select @temp
select job_name from dbo.JobDetail
--將N行數據合併成一行顯示
declare @temp nvarchar(200)
set @temp=''
select @temp=@temp+job_name from dbo.JobDetail
select @temp