日期:2014-05-17 浏览次数:20779 次
SELECT ID, MAX(DECODE(NAME, 'aa', 'aa' )) aa, MAX(DECODE(NAME, 'bb', 'bb' )) bb, MAX(DECODE(NAME, 'cc', 'cc' )) cc FROM tt GROUP BY ID;