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

how to create a primary key with out creating an index?

9 Answers   TCS,


Write a query to find five highest salaries from EMP table. (there is a column SALARY)

24 Answers   Cap Gemini, iNautix,


how can i create a user defined datatype

3 Answers  


what is error ora-03113: end-of-file on communication channel?

0 Answers  


Does view store data in sql?

0 Answers  






What are different types of keys?

0 Answers  


What are the triggers associated with image items?

0 Answers  


pl/sql testing means what ...... explain process how to find pl/sql bugs

1 Answers   Zensar,


What is the difference between microsoft sql and mysql?

0 Answers  


Why commit is not used in triggers?

0 Answers  


Which is the correct statement about truncate and delete?

0 Answers  


what is not null constraint? : Sql dba

0 Answers  


Categories