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 / john

simple query s best as we can issue query by giving various
condition and it will not get stored in database where as a
procedure will get stored in database and gotta occupy
memory.so its waste of memory and time to create a
procedure rather than issuing a si9ngle query

Is This Answer Correct ?    4 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the different between now() and current_date()? : Sql dba

1070


What does sql stand for?

1053


What is data type in database?

1039


How consistent is the view of the data between and within multiple sessions, transactions or statements ?

2267


What is the difference between inner join and natural join?

1053


What is primary key and foreign key?

1010


What is the use of prepared statement?

1070


What is out parameter used for eventhough return statement can also be used in pl/sql?

1122


Which function is used to return remainder in a division operator in sql?

1196


table structure: ---------------- col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10 01-mar-2012 11:12:46 01-mar-2012 11:11:23 Write a query to display the result as shown below: col1 col2 ----- ----- 01-mar-2012 11:12:46 01-mar-2012 11:12:10

4458


Why primary key is required?

1043


List the ways to get the count of records in a table?

941


Can we create index on primary key?

1018


Does sql full backup truncate logs?

1077


what is a record in a database ? : Sql dba

1103