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 are the types of join and explain each? : Sql dba

534


How delete a row in sql?

537


Why partition by is used in sql?

558


What is scalar and vector?

534


How do you determine the current isolation level? : Transact sql

584






How do you pronounce sql?

552


What is materialized view in sql?

469


What is scope of pl sql developer in future?

595


How would you convert date into julian date format?

594


Why is a trigger used?

531


Mention what problem one might face while writing log information to a data-base table in pl/sql?

680


What is latest version of sql?

530


The in operator may be used if you know the exact value you want to return for at least one of the columns.

561


What is the maximum number of triggers, you can apply on a single table?

547


What does fetching a cursor do?

621