what is the difference between Delete and Truncate command in SQL
Answer / Abhinav Gaur
DELETE removes rows from a table based on selection criteria, while TRUNCATE TABLE eliminates all records in a table without regards to any specific conditions. Additionally, DELETE preserves the table structure and allows the use of transactions, whereas TRUNCATE TABLE does not support transactions.
| Is This Answer Correct ? | 0 Yes | 0 No |
Give me a SQL Query to find out the second largest company?
What is transaction server implicit?
What is sql server agent and what are the two modes of authentication in sql server?
explain what is a schema in sql server 2005? Explain how to create a new schema in a database? : Sql server database administration
List the ways in which dynamic sql can be executed?
Explain data warehousing in sql server?
Can group by and orderby be used together?
What is sql server database?
Define model database?
What is the difference between HAVING clause and the WHERE clause?
What are cursors? Explain the different types of cursors Enlist a few disadvantages of cursors.
Tell me the difference between clustered and non-clustered index?
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)