Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

PL11- PL/SQL Tutorial - IF statements in PL/SQL (Theory)

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
4,940
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Mar 11, 2011

PL/SQL Tutorial explaining the IF..END IF, IF...ELSE...END IF, and IF..ELSIF..END IF statement ...presented by www.oraclecoach.com

  • likes, 0 dislikes

Link to this comment:

Share to:
see all

All Comments (5)

Sign In or Sign Up now to post a comment!
  • Best Explantion actually better the institute where i had studied before

    Thanks so much and waiting 4 more

  • VSALARY HR.EMPLOYEES.SALARY%TYPE; - WHAT DOES THIS WAY OF DECLARATION MEAN?

    IT DIDN'T WORK IN MY CASE.

    THANKS FOR AN ANSWER!

  • Very explanatory!

  • DECLARE

    VSALARY HR.EMPLOYEES.SALARY%TYPE;

    BEGIN SELECT SALARY INTO VSALARY FROM HR.EMPLOYEES WHERE FIRST_NAME='Lex';

     IF VSALARY > 6000 THEN DBMS_OUTPUT.PUT_LINE('Earns more than Tom'); ELSE DBMS_OUTPUT.PUT_LINE('Earns less than Tom'); END IF;

    END;

    /

  • DECLARE VSALARY EMPLOYEES.SALARY%TYPE;

    BEGIN SELECT SALARY INTO VSALARY FROM EMPLOYEES WHERE FIRST_NAME='SID'; IF VSALARY > 6000 THEN DBMS_OUTOUT.PUT_LINE('Earns more than Tom'); ELSE DBMS_OUTOUT.PUT_LINE('Earns less than Tom'); END IF;

    END;

    /

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more