oracle 列转行 多行数据转为一行



主key 有5个,【A    B    C    D   E   】



select STN_CD,replace(wm_concat(E),',','、') from T_G1_SHITEN_ORDER

where
A= '000' and
B = 'C01' and
C = 1 and
D= 'K02'

group by A

你可能感兴趣的:(Oracle)