-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