Search
 
SCRIPT & CODE EXAMPLE
 

SQL

truncate delete and drop in sql

DELETE -
-DML COMMAND
-Delete Rows from the table one by one
-We can use where clause with Delete to delete single row
-Delete is slower than truncate
-ROLLBACK is possible with DELETE

DROP-
-DDL COMMAND
-Delete the entire structure or schema
-We can't use where clause with drop
-Drop is slower than DELETE & TRUNCATE
-ROLLBACK IS NOT POSSIBLE WITH DROP

TRUNCATE-
-DDL COMMAND
-Truncate deletes rows at a one goal
-We can't use where clause with Truncate
-Truncate faster than both DELETE & DROP
-Rollback is not possible with Truncate
Comment

delete from table and truncate table

Delete vs Drop vs Truncate
Comment

PREVIOUS NEXT
Code Example
Sql :: ORACLE multiset union distinct 
Sql :: Insert into Select * - NAYCode.com 
Sql :: sql select all 
Sql :: reona 
Sql :: delphi split datetime 
Sql :: recursive query herarchical data sql server 
Sql :: sql tablo hangi sp de 
Sql :: oracle apex call duration 
Sql :: execute oracle ash command 
Sql :: how to connect docker container to gcp sql server 
Sql :: SQL authentication error 
Sql :: select all column 
Sql :: how to make trigger in phpmyadmin 
Sql :: regex any word except sql 
Sql :: T-SQL - Where Used List (Table/View) 
Sql :: select multiple columns count one column and group by one column in one table 
Sql :: postgresql < ALL very slow 
Sql :: postgres add column at position 
Sql :: providername system.data. mysql 
Sql :: snowflake last query id 
Sql :: how to create an SQL save method in ruby 
Sql :: pl/ sql change currency 
Sql :: vbscript create ADODB.Connection 
Sql :: how much table store postgres 
Sql :: download mysql database to excel in android studio 
Sql :: sql server import json 
Sql :: dynamic where clause in sql server stored procedure 
Sql :: find Overlapping sql 
Sql :: how to read the potentail error messages in ssis package 
Sql :: how to make full text search dynamic in mysql 
ADD CONTENT
Topic
Content
Source link
Name
2+7 =