I have a query like this:
select data_name into v_name from data_table where data_table.type = v_t_id
Normally, this query shou
https://stackoverflow.com/a/4683045/471149 answer is nice, but there is shorter solution
select * from my_table ce, (select 150 as id from dual) d where d.id = ce.entry_id (+)