What is the difference between stored procedure and view?
Answer / Kumud Kinakar
Stored Procedures and Views serve different purposes in SQL: 1) A Stored Procedure contains a set of precompiled SQL statements, functions, and cursors that can be called by name. They do not represent any specific data in the database, but rather perform actions on the data. 2) A View is a virtual table based on a SELECT statement that does not modify any data but can be queried like a regular table. Views provide a way to present a subset or transformation of the data in the underlying tables.
| Is This Answer Correct ? | 0 Yes | 0 No |
Explain alias in sql?
What is difference between pls_integer and integer?
How consistent is the view of the data between and within multiple sessions, transactions or statements ?
what is definer rights invoke rights?
how to drop an existing index in mysql? : Sql dba
define data blocks ? : Sql dba
What are all the different normalization?
what are the type of locks ? : Sql dba
what are the advantages of package?
How many sql commands are there?
What are the qualities of 2nf?
I need to write a simple query,which one is better select statement or stored procedure?and why?
Oracle (3253)
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)