例如表名为test,数据如下 原数据为 col1 col2 col3 col4A 1 2 3B 1 2 3 然后用如下语句 select * from(select col1,col2 from testunion allselect col1,col3 from testunion allselect col1,col4 from test) as torder by col1得到的数据就是 A 1A 2A
← 上一条:法律如何规定婚外情的 下一条:oracle sql 将一条记录复制拆分成多 →