Difference between inline query and stored procedure?
Answer Posted / sudama maharana
1. Stored procedure is loaded to database once it compiled, but inline queries are not loaded in to server. So, Stored procedure is in compiled form.
2. As Stored procedure is in compiled form, so in each calling to it, it takes less time than inline queries. Because in Stored procedure we are passing only the names, but in inline query we are passing the whole query.
3. Stored procedures are compiled only once and in each calling its only executing the query. But inline queries are compiled & executed in each calling. So, in stored procedure network Traffic is less.
4. In stored procedure, we can pass parameters . But in inline query we can't pass.
Thanks
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
What is the difference between partition and index?
what is the difference between primary key and unique key? : Sql dba
What is varchar used for?
Which is faster truncate or drop?
What does an inner join do?
Is sql considered coding?
What are the packages in pl sql?
Define overloaded procedure?
Why do we need cursor in pl sql?
Is postgresql a nosql database?
When a dml statement is executed, in which cursor attributes, the outcome of the statement is saved?
Explain the the update statement in sql?
what is 'mysqldump'? : Sql dba
What is exit statement?
What is left inner join in sql?