Home » Other » Marketplace » Column to Rows - Number Seprated By Any Character
|
|
Re: Column to Rows - Number Seprated By Any Character [message #501233 is a reply to message #501222] |
Mon, 28 March 2011 01:55 |
|
Paules
Messages: 128 Registered: March 2011 Location: United Arab Emirates
|
Senior Member |
|
|
Hai,
Try this Query. Hope it will be helpful to u.
SELECT TRIM( SUBSTR ( txt
, INSTR (txt, ',', 1, LEVEL ) + 1
, INSTR (txt, ',', 1, LEVEL+1) - INSTR (txt, ',', 1, LEVEL) -1
)
)
AS token
FROM ( SELECT ','||
(SELECT TRANSLATE('374627467(92876/5674)988276+87234687/8974232*3746-984027374[32742-3746236',
'(+/-*[)',
',,,,,,,') outp
FROM dual)||',' AS txt
FROM dual )
CONNECT BY LEVEL <= LENGTH(txt)-LENGTH(REPLACE(txt,',',''))-1
Regards,
Paules.
[Updated on: Mon, 28 March 2011 01:59] by Moderator Report message to a moderator
|
|
|
|
Goto Forum:
Current Time: Thu Nov 21 12:07:06 CST 2024
|