Below is a simple PL/SQL proc, it is limited, in that the argument is fixed as a row type of Processed_Data_Cursor, ideally adding a new parameter for a table name then having the rowtype as dynamic would provide a general proc,
I have seen possible ways of producing dynamic SQL, but they seem rather convoluted, is there a way of making this simple proc behave as a 3GL type of procedure, with the rowtype argument being a pointer type and thus a variable structure?
TIA
John
I have seen possible ways of producing dynamic SQL, but they seem rather convoluted, is there a way of making this simple proc behave as a 3GL type of procedure, with the rowtype argument being a pointer type and thus a variable structure?
TIA
John
Code:
PROCEDURE writeRow(outPutRow IN Processed_Data_Cursor%ROWTYPE) IS
BEGIN
INSERT INTO CDF_REPORT VALUES outPutRow;
COMMIT;
END;