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

Which is better cte or subquery?

1024


What is a composite primary key?

1082


How can you maintain the integrity of your database on instances where deleting an element in a table result in the deletion of the element(s) within another table?

1121


How to handle bulk data?

1304


how to implement one-to-one, one-to-many and many-to-many relationships while designing tables? : Sql dba

970


What is cte?

968


Are subqueries better than joins?

963


Explain the difference between sql and mysql.

1055


Is mariadb a nosql database?

1042


What is the difference between Union and Union all. Which is faster.

1396


How do I find duplicates in two columns?

1151


explain about mysql and its features. : Sql dba

1009


Can we use commit inside a trigger?

1077


How many clustered indexes can be created on a table?

1071


Does a primary key have to be a number?

960