I need to write a simple query,which one is better select
statement or stored procedure?and why?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / 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 |
Explain select statements in sql?
What is difference between % ROWTYPE and TYPE RECORD ?
What is the difference between the implicit and explicit cursors?
Does it possible to pass object (or) table as an argument to a remote procedure?
What is application trigger?
how to create table with in the procedure or function?
How can one get sql*loader to commit only at the end of the load file? : aql loader
How to generate a salary slip like jan 1000 1000 feb 1000 2000 ... dec 1000 12000
Hi Everyone, How to get fist and last record from a table in oracle? Thanks in advance
Can we declare a column having number data type and its scale is larger than pricesionex: column_name number(10,100),column_name numbaer(10,-84)
What are the most important ddl statements in sql?
how to write utl file pkg in SQL
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)