鉴于这种:
with data_row as (select 1 as col_1 from dual)
select 'Y' as row_exists from dual where exists
(select null
from data_row
where col_1 in (2,1))
我怎样才能得到这个?
Col_1 Row_exists
--------------------
1 Y
2 N