Hello, once again rather than giving a proper problem I've got one about performance/security.
If I'm selecting a number or columns using a cursor and then wish to pass those column values, as well as other values, into a table(well, table encapsulation package), should I call the procedure using the cursor.col_name syntax or should I put the cursor values into variables first and then call the procedure using the variables.
I.e.
table_input_procedure(cursor.col_1, cursor.col_2, other_value, cursor.col_3);
OR
lc_variable_1 := cursor.col_1;
lc_variable_2 := cursor.col_2;
other_value := something_else;
ln_variable_3 := cursor.col_3;
table_input_procedure(lc_variable_1, lc_variable_2, other_value, ln_variable_3);
Cheers,
Pete
If I'm selecting a number or columns using a cursor and then wish to pass those column values, as well as other values, into a table(well, table encapsulation package), should I call the procedure using the cursor.col_name syntax or should I put the cursor values into variables first and then call the procedure using the variables.
I.e.
table_input_procedure(cursor.col_1, cursor.col_2, other_value, cursor.col_3);
OR
lc_variable_1 := cursor.col_1;
lc_variable_2 := cursor.col_2;
other_value := something_else;
ln_variable_3 := cursor.col_3;
table_input_procedure(lc_variable_1, lc_variable_2, other_value, ln_variable_3);
Cheers,
Pete