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 serial sql?

529


How do I start sql from command line?

537


What are the ddl commands?

537


how would you get the current date in mysql? : Sql dba

551


What is row_number () in sql?

548






how to create a table index in mysql? : Sql dba

597


Is oracel sql developer written in java?

648


What is the reports view in oracle sql developer?

545


What is an ndf file?

534


What is sql keyword?

563


What is the difference between explicit and implicit cursors in oracle?

516


What is integrity in sql?

562


Is it possible for a table to have more than one foreign key?

582


Explain what is a column in a table?

573


Is sql better than excel?

519