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 use of procedures?

716


Can you select everything, but 1 or 2 fields, without writer's cramp?

691


What are pl/sql cursors?

729


What is the difference between mdf and ndf files?

780


What are local and global variables and their differences?

810






What is output spooling in sql*plus?

743


what is the difference between sql and t-sql? : Transact sql

812


Why do we use cursors?

671


What is the difference among union, minus and intersect?

731


What is the difference between the implicit and explicit cursors?

744


How is a PL/SQL code compiled?

871


Which one is faster ienumerable or iqueryable?

660


What is trigger price?

731


How do you define a foreign key?

721


What is java sql driver?

740