Difference between a query and strored procedure?

Answers were Sorted based on User's Feedback



Difference between a query and strored procedure?..

Answer / tathagoto

query will be compiled each time excution
stored procedure will be compiled once and after that it
will execute when it will be called....

Is This Answer Correct ?    12 Yes 0 No

Difference between a query and strored procedure?..

Answer / srao

Query is nothing but a single statement to retrieve data
from one or more tables.

Procedure is nothing but the combinations of Different
queries.

Is This Answer Correct ?    8 Yes 4 No

Difference between a query and strored procedure?..

Answer / khushbu wadhwani

in procedure one time compilation is done,whereas in query
compilation is done everytime.so,procedure improves
efficiency & performance

Is This Answer Correct ?    3 Yes 0 No

Difference between a query and strored procedure?..

Answer / r.s.chauhan

Sp gets stored at the server side where as Not necessary
for query(It can be from application or Clint(sql oem) etc)

Is This Answer Correct ?    2 Yes 3 No

Post New Answer

More SQL PLSQL Interview Questions

What is the current version of postgresql?

0 Answers  


what is data control language? : Sql dba

0 Answers  


what is global temporary tables and how use that tables in pl/sql packages

1 Answers   Cap Gemini,


What is the life of an sql statement?

0 Answers  


What is TABLE SPACE?

4 Answers   ABB, TCS,






Is a secondary key the same as a foreign key?

0 Answers  


What are the components of a PL/SQL block ?

3 Answers  


How do you use a while loop in pl sql?

0 Answers  


what is a tablespace? : Sql dba

0 Answers  


What is sql trigger example?

0 Answers  


What is not null in sql?

0 Answers  


can a stored procedure call itself or recursive stored procedure? : Sql dba

0 Answers  


Categories