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 |
In packages the source code is compiled into p code ? how do we describe the p code
What is mutating trigger?How to avoid it??
What is pl sql code?
Name the tables where characteristics of Package, procedure and functions are stored ?
What are the advantages of sql? Explain
What are its different types of dbms?
What is difference between my sql and sql?
What is the purpose of primary key?
What is the difference among union, minus and intersect?
Fetch an entire row from the employees table for a specific employee ID:
What is the difference between subquery and correlated query?
If 100 tables are there in user_tables.I want to find in which table zero records are there with table name.Is it possible?
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)