wht is the difference between truncat,drop in sqlserver
wht is the difference between function and stored procedure

Answer Posted / rakesh

The Main Difference Between DELETE & TRUNCATE Are :-

[1] DELETE - is a DML Command & TRUNCATE - is a DDL Command

[2] After DELETE - can rollback the Records & After TRUNATE
- cannot rollback the records

[3] In DELETE Command you can give the conditions in WHERE
Clause & In TRUNCATE you cannot give conditions

[4] After using DELETE Command The memory will be occupied
till the user does not give ROLLBACK or COMMIT & After using
TRUNCATE Command The memory realeased immediately

Is This Answer Correct ?    8 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Does google use sql?

703


What is the maximum number of columns in sql table?

778


What is lexical units in pl sql?

757


What is sorting in sql?

673


what is sub-query? : Transact sql

839






What are the different datatypes available in PL/SQL?

754


what is the difference between mysql_fetch_object and mysql_fetch_array? : Sql dba

732


What is the purpose of the sql select top clause?

736


What is the difference between jpql and sql?

782


Why do we need unique key in a table?

673


What is the difference between function and procedure in pl/sql?

746


What is a sql statement?

692


Which is better varchar or nvarchar?

732


What is AUTH_ID and AUTH_USER in pl/sql ?

1936


What is the use of index in hive?

727