Difference between a query and strored procedure?
Answers were Sorted based on User's Feedback
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 |
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 |
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 |
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 |
write sub query for eliminating duplicate rows using analytical function?
What are the various levels of constraints?
What does the sign mean in sql?
Can we perform dml on view?
Can a varchar be a primary key?
Can we create view in stored procedure?
What normalization means?
what tools available for managing mysql server? : Sql dba
Why is sharding used?
What is an inconsistent dependency?
what is a join? : Sql dba
can we use out parameter in a function?Give an example.