DBA > Job Interview Questions > DB2 ( IBM Database 2 ) Interview Questions

What is the syntax required for the creation of

More DBA job interview questions and answers at http://dba.fyicenter.com/Interview-Questions/

(Continued from previous question...)

What is the syntax required for the creation of a cursor ?

EXEC SQL
DECLARE cur_name CURSOR for 
  SELECT col1,col2    
  FROM table1
  WHERE col1=search_condition
END_EXEC

(Continued on next question...)

Other Job Interview Questions