what is the difference between delete,drop and truncate

Answer Posted / krishna

DELETE,DROP,TRUNCTATE are to use the remove the rows from the table

DELETE: Delete is used to delete the rows from table by using where condition also and we can ROLLBACK it also

DROP: Delete rows permanently and we can not ROLLBACK it.

TRUNCATE : Delete the data not the structure means in this delete only data but structure is same

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is the information that can be stored inside a bit column? : Sql server database administration

700


Can you explain what is indexed view? How to create it?

715


What happens if date-only values are provided as date and time literals?

743


What are triggers in ms sql server?

795


What is an inner join?

706






Write query to return all rows sql?

789


How to change the password of a login name in ms sql server?

708


What is the web service used for reporting services?

106


What are unicode character string data types in ms sql server?

804


How to start and end transact-sql statements?

745


Write an sql query to sort a table according to the amounts in a row and find the second largest amount.

707


Describe in brief sql server monitoring ways.

752


What are the three different part of rdl file explain them?

214


What is transaction server consistency?

713


What is postgresql server?

687