Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 the usage of when clause in trigger?

1046


Can we have two clustered index on a table?

1018


What is a sql instance vs database?

1107


Explain what is dbms?

1049


How do I view a sql trace file?

1015


what are the drivers in mysql? : Sql dba

1012


What is rank function in sql?

1014


Why plvtab is considered as the easiest way to access the pl/sql table?

1201


Does asenumerable execute the query?

1035


What is materialized view in sql?

914


How do you create an update query?

955


explain commit and rollback in mysql : sql dba

1003


What is a data definition language?

1090


How to connect a sql*plus session to an oracle server?

1118


Define concurrency control. : Transact sql

1172