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 out parameter used for eventhough return statement can also be used in pl/sql?

586


What is sp_helptext?

592


what is a database lock ? : Sql dba

594


What is difference between inner join and self join?

595


how to dump a table to a file with 'mysqldump'? : Sql dba

555






What is rank function in sql?

534


Can delete statement be rollbacked?

527


What are the different types of dbmss?

563


What is the difference between distinct and unique in sql?

474


Does inner join remove duplicates?

523


what is difference between delete and truncate commands? : Sql dba

580


What is a function in oracle pl sql?

545


What are the two types of periodical indexes?

505


What is a primary key called that is made up of more than one field?

797


Are ddl triggers fired for ddl statements within a pl/sql code executed using the dbms.sql package?

621