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
How many sectors are in a partition?
How to look at the current sql*plus system settings?
What does bitemporal mean?
What is difference between stored function and application function?
What is use of package in pl sql?
what are different types of keys in sql?
how can we destroy the cookie? : Sql dba
how to install mysql? : Sql dba
What is the maximum database size for sql express?
List the different type of joins?
how to return query output in html format? : Sql dba
what is the difference between myisam static and myisam dynamic? : Sql dba
Does pl sql work in mysql?
How do I run a script in sql developer?
What will you get by the cursor attribute sql%found?