目前使用此代码段的唯一获取活动功能:
id
//我想在下面的代码块中获取功能名称
with
mytable(id, val) as (
select 100, 'abc' from dual union all
select 173, 'z' from dual union all
select 250, 'dvd' from dual union all
select 30, 'vv' from dual union all
select 359, 'ghi' from dual
),
test_data (id_list) as (
select '67,122,173,256,284,285,288,289,291,294,296,298,301,320,346,359'
from dual
)
select mytable.* from mytable, test_data
where ',' || id_list || ',' like '%,' || to_char(id) || ',%'
;
ID VAL
---------- ---
173 z
359 ghi