Can you tell me the difference between DELETE & TRUNCATE
commands?

Answer Posted / anil

Delete Commands:

it is dml statement
you can specify delete command with critery (where
condition)

syntax: Delete * from tablename where condition

Truncate Command:

it is DDL statement
you can not specify critery with truncate table

syntax: truncate table tablename

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you think BCNF is better than 2NF & 3NF? Why?

1023


How to convert character strings into numeric values?

801


What is partitioned view?

689


Characterize join and name diverse sorts of joins?

714


How to execute a stored procedure in ms sql server?

761


Explain the types of indexes.

860


In my application I have a process which picks the scanned files (tif format) from a shared location and it links to application and shown on it.The actuall issue is that my process picks the file before it is completly written or scanned which results in displaying few parts of the image or incomplete image.I need to check if the file is not completly scanned or written then do not link it to application.Please help if any body tell me that how can i check that file is in written phase or locked through DTS.thanking you in advance

1744


How will you find out if there are expensive SQL statements running or not?

786


What is the command dbcc checkdb used for?

733


What stored by the model?

736


Explain the xml support sql server extends?

833


Detail about the hardware which is supported by SQL server?

778


What is a trace frag?

848


What is sub-query in sql server?

912


what is a join and explain different types of joins? : Sql server database administration

741