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

Explain lock escalation? : Transact sql

702


Why do we need databases?

565


What is data control language (dcl)?

599


What does data normalization mean?

527


what is table? : Sql dba

570






What are the uses of merge?

717


What is set transaction?

580


what is the functionality of the function htmlentities? : Sql dba

520


What is trigger in pl sql with examples?

519


Is sql difficult?

743


What's the difference between inner join and left join?

511


How to write a single statement that concatenates the words ?hello? And ?world? And assign it in a variable named greeting?

644


How can you create an empty table from an existing table?

594


How run sql*plus commands that are stored in a local file?

518


Where is sql database stored?

518