Difference between:
- Delete & Truncate
- Table & View
- Constraints & Triggers
Answer / amrish kumar
The DELETE command is used to remove rows from a table. A
WHERE clause can be used to only remove some rows. If no
WHERE condition is specified, all rows will be removed.
After performing a DELETE operation you need to
COMMIT or ROLLBACK the transaction to make the change
permanent or to undo it.
TRUNCATE removes all rows from a table. The operation cannot
be rolled back. As such, TRUCATE is faster and doesn't use
as much undo space as a DELETE.
DROP and TRUNCATE are DDL commands, whereas DELETE is a DML
command. Therefore DELETE operations can be rolled back
(undone), while DROP and TRUNCATE operations cannot be
rolled back.
Table is a basic unit of data storage in an oracle database.
It holds all user accessible data.
View is a virtual table
- It can be created on a table or another view.
- It is just like a window through which we can access or
change base table data.
- It does contain data of its own. It always takes data from
its base table.
- It is stored as a query in data dictionary.Whenever you
query a view it gets data from its based table using this query.
Constraints are great at maintaining database integrity for
database fields and relationships between database tables.
Triggers are great for checking past vs. current values and
making decisions based on that data.
| Is This Answer Correct ? | 11 Yes | 0 No |
Can we store videos inside the sql server table?
1. How to fetch all the duplicate records from the table. 2. How to fetch the second highest salary from the table.
Rate yourself in .NET and SQL ?
1 Answers Cognizant, HCL, SunGard,
Define msdb database?
How to modify the underlying query of an existing view?
Does partitioning help performance?
Tell me what is the order in which the sql query is executed?
WHAT OPERATOR PERFORMS PATTERN MATCHING?
2 Answers CarrizalSoft Technologies, CTS,
What is sql profiler. What are the default templates with it? : sql server database administration
how to create a scrollable cursor with the scroll option? : Sql server database administration
What are the advantages of paper records?
What is correlated subquery in sql server?
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)