What are the blocks in stored procedure?

Answers were Sorted based on User's Feedback



What are the blocks in stored procedure?..

Answer / swapnareddy

Declaration Block(optional)
Begin
Executable Block
exception Block(optional)
end;

Is This Answer Correct ?    15 Yes 3 No

What are the blocks in stored procedure?..

Answer / manojbatra071

whenever we create stored procedure the syntax is:
CREATE OR REPLACE PROCEDURE proc_name
AS/IS
(declare variables inside this block)
BEGIN
perform whatever u want in stored procedure
EXCEPTION
(perform the steps if any errors occur than what to do )
END;

therefore the blocks are as/is , begin,exception and end

Is This Answer Correct ?    11 Yes 2 No

What are the blocks in stored procedure?..

Answer / pronobesh

Actually there are 3 blocks
1) Declartion Block - Starts with AS right after CREATE
PROCEDURE <Proc Name>
2) Execution Block - Starts with BEGIN and ends with END
ahere the actual execution happen.
3) Exception Block - Where we catch the procedure error.

Hope this clarifies.

Is This Answer Correct ?    3 Yes 0 No

What are the blocks in stored procedure?..

Answer / guest

Begin
--This section must contain atleast one executiable
statment.


Exception
end ;

Is This Answer Correct ?    3 Yes 2 No

What are the blocks in stored procedure?..

Answer / sachin

create /alter proc nameof procedure
as/is
beging
statment
EXCEPTION
end

Is This Answer Correct ?    0 Yes 0 No

What are the blocks in stored procedure?..

Answer / eshwer

Declaration block
Execution block
Exception block

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More SQL PLSQL Interview Questions

what is bulk bind

4 Answers   TCS,


What are the benefits of using PL/SQL packages?

3 Answers  


How to use sql*plus built-in timers?

0 Answers  


Can we relate two different tables from two different users in ORACLE,PL/SQL?

4 Answers  


What is the basic form of sql query?

0 Answers  






what are the non-standard sql commands supported by 'mysql'? : Sql dba

0 Answers  


What does joining a thread mean?

0 Answers  


What is normalization sql?

0 Answers  


What are few of the schema objects that are created using PL/SQL?

0 Answers  


What is the criteria while applying index to any column on any table.

1 Answers   Infogain,


What is synonyms?

0 Answers  


what is meant by databases

4 Answers  


Categories