可能没有,只有表变量。declare @数组 table(id int identity,value varchar(100))
insert @数组 select 'aa' union select 'bb' union select 'cc'select * from @数组
insert @数组 select 'aa' union select 'bb' union select 'cc'select * from @数组
@string varchar(800)
as
create table #临时表 (id int identity,value varchar(100))
set @string='insert #临时表 select '''+replace(@string,',','''as str union all select ''')+''''
exec(@string)
select * from #临时表
go--调用:
exec xx 'aa,bb,cc,dd'
同意大力
输出文件为txt文件放在c:\windows\desktop\outtxt.txt语句为:isqlw -s server -d gzfibacc -u sa -p -i c:\windows\desktop\sqltmp.sql
-o c:\windows\desktop\outtxt.txt -FU但老是报错,请高手指教!!