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 are the properties and different types of sub-queries? : Sql dba
what are the differences between char and varchar? : Sql dba
What is dense_rank in sql?
Can delete statement be rollbacked?
Can you do multiple joins in sql?
How to call a javascript function from pl sql?
Explain the difference between 'between' & 'and' operators in sql
What is coalesce in sql?
How to avoid using cursors?
What are the types pl/sql code blocks?
What are the uses of sysdate and user keywords?
If a cursor is open, how can we find in a pl/sql block?
How many subqueries can be nested in a statement?
What is a column in a table?
What is normalization? How many normalization forms are there?