我與這些值的表列:在許多列拆分單詞的sql
Column-desc
------------------
"car broken"
"motorcycle broken"
"motorcycle clean"
"motorcycle clean and broken"
------------------
,我需要做一個選擇,返回此:
return-desc1 | return-desc2 | return-desc3 |return-desc4
------------------------------------------------------
car | broken | |
motorcycle | broken | |
motorcycle | clean | |
motorcycle | clean | and | broken
-------------------------------------------------------
(是的,最多會返回4 DESC)。 我可以在這種情況下使用正則表達式嗎?
如果這可以幫助:我使用Oracle 10g
這可能讓你在正確的方向前進:http://stackoverflow.com/questions/5123585/how-to-split-a-single-column-values-to-multiple-column-values – 2013-03-13 13:50:05
很酷,它會幫助我,我可以一步一步來。 – rcorbellini 2013-03-13 13:51:22
它不工作在oracle = [ – rcorbellini 2013-03-13 13:55:21