0
我想在分割方括號中的所有值的列執行正則表達式後產生多行。目前,我只能返回一個值。Oracle正則表達式連接通過
我執行正則表達式的字段有此值:
[1265] * [1263]
我試圖讓1265和1263在我的結果設置爲不同的行。
SELECT REGEXP_SUBSTR(column,'\[(.*?)\]',1,LEVEL) AS "col1"
FROM table
CONNECT BY REGEXP_SUBSTR(column,'\[(.*?)\]',1,LEVEL) IS NOT NULL;
相反,我只是在結果集中得到這個。
[1263]
這些值是否始終爲整數? – Aleksej
當我運行它時,你的代碼將該字符串分成兩行。 – APC
它確實返回兩行,但其中一行爲空,另一行填充。 – user1060187