Имя таблицы: T_record
Id(auto increment using sequence) Name Age
1 Chitta 18
2 Chitta1 19
3 Chitta2 18
4 Chitta3 18
У меня есть процедура PL/SQL, которая будет вставлять записи в приведенную выше таблицу.
Insert into T_record (name, Age)
(select name, age
from T_record
where Age =18)
returning id bulk collect into v_newly_added_conf_input_ids;
Но массовый сбор не работает.
Как я узнаю id
s, которые вставлены недавно (я хочу, чтобы он использовал те же id
s в другом запросе выбора)?