SQL 横向数据竖向显示
create PROCEDURE pdz AS
declare @s varchar(8000)
set @s= 'create table testg(序号 varchar(20) '
select @s=@s+ ', '+ ColumnName +' varchar(20) ' from Roche_Log_Field
set @s=@s+ ') '
exec(@s)
create PROCEDURE pdz AS
declare @s varchar(8000)
set @s= 'create table testg(序号 varchar(20) '
select @s=@s+ ', '+ ColumnName +' varchar(20) ' from Roche_Log_Field
set @s=@s+ ') '
exec(@s)