我有一个oracle过程:
CREATE OR REPLACE PROCEDURE insert_row( p_rec IN table_name%rowtype )
AS
BEGIN
INSERT INTO table_name
VALUES p_rec;
END;
我需要从oracle APEX页面中调用并将其传递几个值。鉴于该过程采用了行类型,我该怎么办?
答案 0 :(得分:1)
declare
l_rec table_name%rowtype;
begin
l_rec.id := :P1_ITEM;
l_rec.name := :P1_NAME;
insert_row(l_rec);
end;