Statements used to process multi-row query - SQL Operations
Q. To process most dynamic SQL statements, you use the EXECUTE IMMEDIATE statement. To process a multi-row query (SELECT statement), which of these statements would you use?- Published on 07 Jul 15a. OPEN-FOR
b. FETCH
c. CLOSE
d. All mentioned above
ANSWER: All mentioned above
Dynamic SQL is used to create general purpose,flexible applications so that the full text may be unknown at compilation. Hence, To process most dynamic SQL statements, you use the EXECUTE IMMEDIATE statement. To process a multi-row query (SELECT statement), we use the OPEN-FOR,FETCH,CLOSE statements.