【发布时间】:2021-07-09 23:20:47
【问题描述】:
我有接下来的两个字符串:
String_Cod = 14521;65412;65845
String_Flags = 1;0;1
for code 14521 the flag is 1
for code 65412 the flag is 0
for code 65845 the flag is 1
in this order always
结果一定是这样的
我从这个查询开始:
select regexp_substr(to_char(:STRING_COD),'[^;]+', 1, level)
from dual
connect BY regexp_substr(to_char(:STRING_COD), '[^;]+', 1, level)
is not null
select regexp_substr(to_char(:STRING_FLAGS),'[^;]+', 1, level)
from dual
connect BY regexp_substr(to_char(:STRING_FLAGS), '[^;]+', 1, level)
is not null
但我不知道如何继续加入两者并获得我需要的结果。
谁能给个建议?
问候
【问题讨论】:
标签: oracle19c oracle-apex-19.1 oracle21c