Are PL/SQL variables in cursors effectively the same as bind parameters?
问题 I've heard that using bind variables is (can be) more efficient, because for subsequent calls with a different bind value, the query itself is still the same, so it doesn't need to be parsed anymore. I understand why this is the case for fixed values. In the cursor below, the value is fixed on 1. If I have a different cursor that is the same, except the 1 becomes 2, it is a diffent query. Clear so far. declare cursor C_CURSOR is select * from TESTTABLE pt where pt.ID = 1; But I wondered if