如果單純是你表里數(shù)據(jù)的話: 創(chuàng)建表,數(shù)據(jù) create table test(key varchar2(20),value varchar2(20)); insert into test values ('account','0001');insert into test values ('name','張三');insert into test values ('account','0002');insert into test values ('name','李四');commit;執(zhí)行:select max(case when t.key = 'account' thenvalue end) account, max(case when t.key = 'name' thenvalue end) namefrom (select test.*, rownum rn from test) t group by ceil(rn / 2)結(jié)果:我這里是強(qiáng)行把行號(hào)作為了分組條件,否則同樣的0001賬戶也有可能對(duì)應(yīng)上李四這個(gè)人,所以你最好自己弄清楚怎么才是一組,比如是一組的兩條數(shù)據(jù)給個(gè)同樣的ID之類的。