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

explain what are the steps you will take, if you are tasked with securing an sql server? : Sql server database administration

638


What are the steps you should follow to start sql server in single-user mode?

474


What is table constraint?

534


Explain primary key and foreign key constraints?

518


what is the difference in login security modes between v6.5 and 7.0? : Sql server database administration

641






If a table does not have a unique index, can a cursor be opened on it?

510


Tell me what is log shipping?

556


Can we join two tables without primary key?

605


How do I run a trace in sql server?

493


Give an example of SQL injection attack ?

564


What are the differences between user defined functions and stored procedures?

526


How to remove duplicate rows from table except one?

564


How to find the version of sql server? : sql server database administration

620


how would you store your query in an SSRS report or a Database server?

116


How to include date and time values in sql statements?

626