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

How to run pl sql program in mysql?

1025


who introduced sql?

1026


give the syntax of grant and revoke commands? : Sql dba

1154


What is dense_rank in sql?

988


What are the benefits of pl/sql packages?

1107


Write a sql select query that only returns each name only once from a table?

1019


Explain lock escalation? : Transact sql

1203


write an sql query to get third maximum salary of an employee from a table named employee_table. : Sql dba

975


Explain the working of foreign key?

1070


How to return multiple rows from the stored procedure?

971


Is left join same as inner join?

1134


what is a relationship and what are they? : Sql dba

1101


How do I partition in sql?

967


What is difference between stored procedures and application procedures?

1014


What is string join?

981