09.10.2014 Views

download pl/sql tutorial (pdf - Tutorials Point

download pl/sql tutorial (pdf - Tutorials Point

download pl/sql tutorial (pdf - Tutorials Point

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

NULLs in PL/SQL .................................................................................... 21<br />

Variables ................................................................................ 22<br />

Variable Declaration in PL/SQL ............................................................... 22<br />

Initializing Variables in PL/SQL ................................................................ 23<br />

Variable Scope in PL/SQL ....................................................................... 23<br />

Assigning SQL Query Results to PL/SQL Variables ................................ 24<br />

Constants ............................................................................... 26<br />

Declaring a Constant ............................................................................... 26<br />

The PL/SQL Literals ................................................................................ 27<br />

Operators ............................................................................... 28<br />

Arithmetic Operators ................................................................................ 28<br />

Exam<strong>pl</strong>e: .................................................................................................. 29<br />

Relational Operators ................................................................................ 29<br />

Exam<strong>pl</strong>e: .................................................................................................. 29<br />

Comparison Operators ............................................................................ 30<br />

LIKE Operator: ......................................................................................... 31<br />

BETWEEN Operator: ............................................................................... 31<br />

IN and IS NULL Operators: ...................................................................... 32<br />

Logical Operators .................................................................................... 33<br />

Exam<strong>pl</strong>e: .................................................................................................. 33<br />

PL/SQL Operator Precedence ................................................................. 33<br />

Exam<strong>pl</strong>e: .................................................................................................. 34<br />

Conditions .............................................................................. 35<br />

Syntax: ..................................................................................................... 36<br />

Flow Diagram: .......................................................................................... 36<br />

Exam<strong>pl</strong>e 1: ............................................................................................... 37<br />

Exam<strong>pl</strong>e 2: ............................................................................................... 37<br />

Syntax: ..................................................................................................... 38<br />

Flow Diagram: .......................................................................................... 38<br />

Exam<strong>pl</strong>e: .................................................................................................. 39<br />

Syntax: ..................................................................................................... 40<br />

Exam<strong>pl</strong>e: .................................................................................................. 40<br />

Syntax: ..................................................................................................... 40<br />

Flow Diagram: .......................................................................................... 41<br />

Exam<strong>pl</strong>e: .................................................................................................. 41<br />

Syntax: ..................................................................................................... 42<br />

Flow Diagram: .......................................................................................... 42<br />

Exam<strong>pl</strong>e: .................................................................................................. 42<br />

Syntax: ..................................................................................................... 43<br />

iii

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!