SQL - Using Checkboxes in An Interactive Report With Primary Key - Stack Overflow
SQL - Using Checkboxes in An Interactive Report With Primary Key - Stack Overflow
primary key
FOR i in 1..APEX_APPLICATION.G_F01.count
LOOP
INSERT INTO table_name(user_photo_id, created_by, created_on, photo_id, user_id)
values(:P58_USER_PHOTO_ID, :F125_USER_ID,sysdate,:P58_PHOTOS,
apex_application.g_f01(i));
END LOOP;
declare
function get_pk return varchar2
is
begin
for c1 in (select TABLE_USER_PHOTO_SEQ.nextval next_val
from dual)
loop
return c1.next_val;
end loop;
end;
begin
:P58_USER_PHOTO_ID := get_pk;
end;
sql oracle-apex
https://stackoverflow.com/questions/9468065/using-checkboxes-in-an-interactive-report-with-primary-key?rq=1 1/3
12/10/2018 sql - Using checkboxes in an interactive report with primary key - Stack Overflow
8 1 3
1 Answer
FOR i in 1..APEX_APPLICATION.G_F01.cou
LOOP
INSERT INTO table_name(user_photo_id
values(TABLE_USER_PHOTO_SEQ.nextval,
apex_application.g_f01(i));
END LOOP;
https://stackoverflow.com/questions/9468065/using-checkboxes-in-an-interactive-report-with-primary-key?rq=1 2/3
12/10/2018 sql - Using checkboxes in an interactive report with primary key - Stack Overflow
By using our site, you acknowledge that you have read and understand our , , and our
.
https://stackoverflow.com/questions/9468065/using-checkboxes-in-an-interactive-report-with-primary-key?rq=1 3/3