What are the two parts of a procedure ?

Answers were Sorted based on User's Feedback



What are the two parts of a procedure ?..

Answer / chakri

Syntax of procedure :

CREATE OR REPLACE PROCEDURE proce_name (Arg list)
IS
LOCAL VARIBLE DECLARATION

BEGIN
----------
----------
---------
END;


In the about syntax

Up to IS key word called as Procedure Header and

Remaining Part is called as Procedure Body.

Is This Answer Correct ?    5 Yes 0 No

What are the two parts of a procedure ?..

Answer / siddhartha

Declaration and executable

Is This Answer Correct ?    6 Yes 3 No

What are the two parts of a procedure ?..

Answer / kirankumar.vangeti

create or replace procedure procedure_name as

Declare
/* Declarative section: variables, types, and local sub
programs */
Begin
/* Executable section: Procedural and sql statements go
here */
Exception
/* exception handling section: error handling statements go
here */
End;

Is This Answer Correct ?    1 Yes 0 No

What are the two parts of a procedure ?..

Answer / ramesh

Procedure specification (spec)
Procedure body

Is This Answer Correct ?    0 Yes 2 No

What are the two parts of a procedure ?..

Answer / tulsi

Procedure Specification and Procedure Body.

Is This Answer Correct ?    6 Yes 9 No

What are the two parts of a procedure ?..

Answer / a.jyothsna

Procedure specification: create or replace procedure proc-nm
(agumentlist)
procedure body: is-------------end

Is This Answer Correct ?    2 Yes 5 No

Post New Answer

More SQL PLSQL Interview Questions

What is different between union and minus?

7 Answers   Accenture, TCS,


Explain what is table in a database?

0 Answers  


Are stored procedures faster than queries?

0 Answers  


What is mdb stand for?

0 Answers  


What is the use of double ampersand (&&) in sql queries? Give an example

0 Answers  






explain the delete statements in sql

0 Answers  


how to find 5th row ?

10 Answers  


Explain the steps needed to create the scheduled job?

0 Answers  


I have a table with 1 million records out of which 10,000 records are of unique records, then if I will implement index, then which type of index shall I use and why shall I use?

2 Answers   HSBC,


What is a temporal data type?

0 Answers  


How would you go about increasing the buffer cache hit ratio? 0. Explain the difference between a hot backup and a cold backup and the benefits associated with each 1. You have just had to restore from backup and do not have any control files. How would you go about bringing up this database? 2. How do you switch from an init.ora file to a spfile? 3. Explain the difference between a data block, an extent and a segment. 4. Give two examples of how you might determine the structure of the table DEPT. 5. Where would you look for errors from the database engine? 6. Compare and contrast TRUNCATE and DELETE for a table. 7. Give the reasoning behind using an index. 8. Give the two types of tables involved in producing a star schema and the type of data they hold. 9. What type of index should you use on a fact table? 10. Give two examples of referential integrity constraints. 11. A table is classified as a parent table and you want to drop and re-create it. How would you do this without affecting the children tables? 12. Explain the difference between ARCHIVELOG mode and NOARCHIVELOG mode and the benefits and disadvantages to each. 13. What command would you use to create a backup control file? 14. Give the stages of instance startup to a usable state where normal users may access it. 15. What column differentiates the V$ views to the GV$ views and how? 16. How would you go about generating an EXPLAIN plan?

2 Answers  


1> how are u debugging in plsql ? 2> how to connect oracle database from unix. is there ne way other than using sqlplus ?

2 Answers  


Categories