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

Is stored procedure faster than query?

732


Is vs as in pl sql?

672


What are the conditions an underlying table must satisfy before a cursor can be used by a positioned update or delete statement? : Transact sql

737


What is the maximum number of rows in sql table?

745


What is the difference between in and between in sql?

775






How can I speed up sql query?

707


Can a table contain multiple primary key’s?

808


Explain character-manipulation functions?

840


What is the use of index in hive?

727


What is the use of <> sql?

738


What is pl sql and why it is used for?

801


What is the difference between a procedure and a function?

704


What is sql engine in oracle?

725


What is difference between mysql and postgresql?

707


how to include character strings in sql statements? : Sql dba

738