What are the components of a PL/SQL block ?

 A set of related declarations and procedural statements is called block.

Editorial / Best Answer

Answered by: Chandra Shekhar

  • Oct 3rd, 2005


PL/SQL Block contains :

Declare : optional

Variable declaration

Begin  : Manadatory

Procedural statements.

Exception : Optional

any errors to be trapped

End :  Mandatory

So only begin and end keywords are required, as needed, to process a pl/sql block.

Showing Answers 1 - 28 of 28 Answers

Paramjeet singh

  • Sep 15th, 2005
 

Component of PL/SQL Block are Begin,Declare(Mandatory),Exception,ENd.

  Was this answer useful?  Yes

Prakash Nandwana

  • Sep 27th, 2005
 

The components of a PL/SQL are Declare,Begin , Exception , End.

  Was this answer useful?  Yes

Chandra Shekhar

  • Oct 3rd, 2005
 

PL/SQL Block contains :

Declare : optional

Variable declaration

Begin  : Manadatory

Procedural statements.

Exception : Optional

any errors to be trapped

End :  Mandatory

So only begin and end keywords are required, as needed, to process a pl/sql block.

P.Ravi

  • Nov 17th, 2005
 

A PL/SQL block is basically DECLARE -- Variable declaration sectionBEGIN -- set of statementsExceptions-- Exceptions Hanlders or set of statementsEnd;/

  Was this answer useful?  Yes

Yestha Bapna

  • Aug 14th, 2007
 

[ DECLARE

 <local declarations> ]

BEGIN

 <procedural statement>
  <SQL>

[ EXCEPTION
 <exception handler(s)> ]

END;

g_sidhu

  • Feb 16th, 2008
 

A PL/SQL block consists of up to three sections:

declarative (optional),

executable (required),

and exception handling (optional).

  Was this answer useful?  Yes

saravanan

  • Nov 29th, 2013
 

NIL

  Was this answer useful?  Yes

Kevin Korir

  • Dec 10th, 2016
 

Declare: optional
Begin:mandatory-program logic of SQL&plsql statements
Exception: optional (error handling)
End:mandatory
(Forward slash / terminates)

  Was this answer useful?  Yes

vamsi

  • Jun 7th, 2017
 

cursors
collections
procedures
functions
triggers

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions