I need to write a simple query,which one is better select
statement or stored procedure?and why?

Answer Posted / sudipta santra

A simple query because through query we can throw the result
of the data based on conditions but in stored procedure we
can not , as the procedure is used for the specific time
based for the specific value return through out/IN out .

A simple query is best. But it is wrong that we can not do
through a proc, we can do but the effort will take more.

Is This Answer Correct ?    5 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Mention what does plvtab enables you to do when you showthe contents of pl/sql tables?

797


In what condition is it good to disable a trigger?

652


What is a primary key sql?

662


What is %type in sql?

606


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

645






What is delimiter in pl sql?

660


What is data abstraction in sql?

621


What is sql data?

628


Mention what is the function that is used to transfer a pl/sql table log to a database table?

574


What are tuples in sql?

687


How do you go back in sql?

624


i have a column which may contain this kind of value: 123*67_80,12*8889_5,34*8_874 ,12*7_7 (can contain space before a comma, and this string length can be anything) now i want to split this value into two column like: column1: 123*67,12*8889,34*8,12*7 column2: 80,5,874,7 use function for this

1185


What information is needed to connect sql*plus an oracle server?

675


What do you mean by stored procedures?

644


What is insert command in sql?

628