DB2 SQL PL Statement

The following are the key statements we use in SQL PL of DB2:

  • Variable related statements
    • DECLARE <variable>
    • DECLARE <condition>
    • SET statement (assignment statement)
  • Conditional statements
    • IF
    • CASE expression
  • Looping statements
    • FOR
    • WHILE
  • Transfer of control statements
    • GOTO
    • ITERATE
    • LEAVE
    • RETURN
  • Error management statements
    • SIGNAL
    • GET DIAGNOSTICS
Detailed discussion I will give in the next sessions. Keep reading.

Comments

Popular posts from this blog

Top myths for NULL value in SQL Queries