Reputation: 6909
I have an oracle procedure:
CREATE OR REPLACE PROCEDURE insert_row( p_rec IN table_name%rowtype )
AS
BEGIN
INSERT INTO table_name
VALUES p_rec;
END;
That I need to call from oracle APEX page and pass it several values. How can I do this, given the procedure takes in rowtype?
Upvotes: 1
Views: 505
Reputation: 5035
declare
l_rec table_name%rowtype;
begin
l_rec.id := :P1_ITEM;
l_rec.name := :P1_NAME;
insert_row(l_rec);
end;
Upvotes: 1