I need to write a simple query,which one is better select
statement or stored procedure?and why?

Answer Posted / sudipta santra

A simple query because through query we can throw the result
of the data based on conditions but in stored procedure we
can not , as the procedure is used for the specific time
based for the specific value return through out/IN out .

A simple query is best. But it is wrong that we can not do
through a proc, we can do but the effort will take more.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is trigger in sql and its types?

528


Is sql the best database?

494


What is sql comments?

646


What are the possible values that can be stored in a boolean data field?

507


What is normalization? How many normalization forms are there?

545






How do I start pl sql?

486


What are the different dml commands in sql?

581


How do I save a sql query?

540


How to select 10 records from a table?

639


What's the procedure?

481


how to create a new view in mysql? : Sql dba

488


how to convert character strings to numeric values? : Sql dba

565


How to execute a stored procedure?

555


what is text? : Sql dba

545


What is the difference between microsoft access and sql?

491