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


Please Help Members By Posting Answers For Below Questions

Is primary key clustered index?

524


Explain the the update statement in sql?

573


Explain the types of joins in sql?

575


What is a variable in sql?

516


Is natural join and inner join same?

500






How to sort the rows in sql.

604


Why we use join in sql?

533


What is cartesian join in sql?

559


How to select the Nth maximum salary from Table Emp in Oracle SQL Plus ?

605


how do you control the max size of a heap table? : Sql dba

538


How to assign sql query results to pl sql variables?

514


What are the three forms of normalization?

533


Explain the select statement in sql?

616


What is the difference between the implicit and explicit cursors?

527


Which are the different types of indexes in sql?

563