-3
琴絃,我有如下組合作爲輸入,請幫我一個函數返回的輸出變量下面剝離在Oracle
COMPANY-ID_ABC_123 ==> This should give three outputs (COMPANY-ID,ABC,123)
COMPANY-ID ==> this should give give three outputs such as (COMPANY-ID,null,null)
COMPANY-ID-FLAG ==> this should give give three outputs such as (COMPANY-ID,FLAG,null)
COMPANY-ID-FLAG-ES ==> this should give give three outputs such as (COMPANY-ID,FLAG,ES)
COMPANY-ID-ES ==> this should give give three outputs such as (COMPANY-ID,ES,null)
IOB-2003 ==> if i give any other string other than the above , it has to just display (IOB-2003,null,null)
你可以檢查一下你是否寫完了所有的東西嗎? (我發現兩三個奇怪的東西......例如COMPANY-ID-FLAG或COMPANY-ID_FLAG?但也有其他說明) – etsa
是的COMPANY-ID是默認的,第一個例子包含兩個附加的字符串下劃線_。休息它的所有連字符。 –
如果是這樣,請修改並編輯您的問題。澄清你的實際值是否也是如此(例如,當你編寫COMPANY-ID時,你的意思是任何值或只是「COMPANY_ID」?) – etsa