P. 1
ORACLE-PL-SQL

ORACLE-PL-SQL

|Views: 155|Likes:
Published by Snehal Wale Bhosle

More info:

Published by: Snehal Wale Bhosle on Feb 05, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PPT, PDF, TXT or read online from Scribd
See more
See less

11/08/2013

pdf

text

original

Syntax of Declaration

identifier [constant ] datatype

[not null ] [:= plsql_expression ] ;

Quick Notes-variable Declaration

1. The rules for identifiers are same as for SQL objects.

2. NOT NULL may be used to constrain a variable so that
it cannot have NULL value

3. Only one identifier per line is allowed . For ex.

DECLARE

fristname lastname CHAR(20) ; -illegal

DECLARE

fristname CHAR(20) ; -legal

lastname CHAR(20) ; -legal

Oracle Center of Excellence
Oracle Center of Excellence

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->