Which statement is used to associate a cursor variable with the dynamic SQL statement?

Options
- OPEN
- USING
- OPEN FOR
- WITH


CORRECT ANSWER : OPEN FOR

Discussion Board
OPEN FOR

The OPEN FOR statement is used to associate a cursor variable with the dynamic SQL statement. The OPEN-FOR statement executes the SELECT statement associated with a cursor variable. It allocates database resources to process the statement, identifies the result set (the rows that meet the conditions), and positions the cursor variable before the first row in the result set. Use an OPEN FOR statement to associate a cursor variable with the dynamic SQL statement. In the USING clause of the OPEN FOR statement, specify a bind variable for each placeholder in the dynamic SQL statement. The USING clause cannot contain the literal NULL. To work around this restriction, use an uninitialized variable where you want to use NULL.

Prajakta Pandit 02-24-2017 06:57 AM

cursor varable in dynamic sql

pretty sure its using or question is badly written.

john 01-29-2015 02:24 PM

Write your comments


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement