What are the blocks in stored procedure?

Answer Posted / 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



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of nvl function?

858


How do I run a pl sql program?

793


What is the main reason behind using an index?

723


How would you reference column values before and after you have inserted and deleted triggers?

811


Why is normalization important?

742






What are the two different parts of the pl/sql packages?

784


Which sorts rows in sql?

768


Can we perform dml on view?

735


Which join is like an inner join?

713


What is a ddl command?

715


What is sql*loader and what is it used for?

740


What is sql deadlock?

741


what are myisam tables? : Sql dba

715


What is the difference between drop and truncate commands?

698


Is it mandatory for the primary key to be given a value when a new record is inserted?

926