Browsing articles tagged with " oralce"
Dec
13

Structure of PL/SQL Block

By admin  //  Oracle  //  View Comments

[<Block Header>]

[DECLARE

<constants>

<variables>

<Cursors>

<user defined exceptions>

]

BEGIN

<PL/SQL Statements>

[Exceptions <exception handlings>]

END;

BLOCK HEADER specifies whether the PL/SQL block is procedure, a function or a package. If no header is specified, the block is said to be an anonymous PL/SQL block.

Dec
13

LOOP in PL/SQL

By admin  //  Oracle  //  View Comments

Syntax:

LOOP

statements

END LOOP;

Example:

DECLARE

cntr NUMBER :=0;

BEGIN

LOOP

cntr :=cntr +1;

IF cntr>100 THEN

Dbms_Output.put_line (cntr);

EXIT;

END IF;

END LOOP;

Namaste!

Hello! This is Nirmal Gyanwali, a freelance web developer from Kathmandu, Nepal. I am well versed with Open source CMS and portal frameworks like Joomla!, Wordpress, Drupal. If you're interested, you can contact me at info@nirmal.com.np.
Thanks!

Latest Tweets