好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

SQLServer基础之行数据转换为列数据

准备工作

创建表

use [test1]
go

create table [dbo].[student](
  [id] [int] identity(1,1) not null,
  [name] [nvarchar](50) null,
  [project] [nvarchar](50) null,
  [score] [int] null,
 constraint [pk_student] primary key clustered 
(
  [id] asc
)with (pad_index = off, statistics_norecompute = off, ignore_dup_key = off, allow_row_locks = on, allow_page_locks = on) on [primary]
) on [primary]
go 

查看更多关于SQLServer基础之行数据转换为列数据的详细内容...

  阅读:52次