embedded SQL .vs. embedded PL/SQL in ProC
Hello all,
Am starting to look at embedded SQL code, for first time in many years. My question is: what (if any) are the advantages of embedding PL/SQL in Pro*C (11g), instead of embedding SQL? The code I've inherited uses embedded SQL, but I thought it was a performance enhancement to use embedded PL/SQL.
Are there specific reasons / examples when 1 is better than the other? Can you not always replace embedded SQL with embedded PL/SQL in Pro*C?
Thanks in advance!
-bw