日期:2014-05-17 浏览次数:20583 次
create table 表1 (A1 int, A2 int, A3 int) insert into 表1 select 1, 2, 3 select right(c,1) 'A1' from 表1 a unpivot(v for c in([A1],[A2],[A3])) p /* A1 ---- 1 2 3 (3 row(s) affected) */