mysql----データテーブルをすばやく削除(drop,truncate,delete)
3057 ワード
:
TRUNCATE TABLE WHERE DELETE : 。 TRUNCATE TABLE DELETE , 。
DELETE , 。TRUNCATE TABLE , 。
TRUNCATE TABLE , 、 、 。 。 , DELETE。 , DROP TABLE 。
:innodb ,truncate table 》drop table >delete
myisam engine ,truncate table drop table ;
innodb ,truncate table drop table 。
truncate talbe ,indexs ,trigger, procedure, function, drop table 。
truncate table , 。
, 。
, drop;
, , truncate;
(always with a WHERE clause), delete.
1.DELETE
?DML
?
?
DELETE FROM
WHERE
2.TRUNCATE TABLE
?DDL
?
?
? delete 。
TRUNCATE TABLE
1、TRUNCATE 。 ROLLBACK Delete , TRUNCATE 。
2、TRUNCATE DDL , DDL , , TRUNCATE ROLLBACK 。
3、TRUNCATE 。 , TRUNCATE Delete 。
4、TRUNCATE Delete 。
5、 , delete 。
6、 。
oracle , delete , , delete , , 。
oralce HWM , oracle 。 , , delete , , , 。 truncate 。 , , , , 。 select , , , , delete , delete 。 :
TRUNCATE TABLE WHERE DELETE : 。 TRUNCATE TABLE DELETE , 。
DELETE , 。TRUNCATE TABLE , 。
TRUNCATE TABLE , 、 、 。 。 , DELETE。 , DROP TABLE 。
:innodb ,truncate table 》drop table >delete
myisam engine ,truncate table drop table ;
innodb ,truncate table drop table 。
truncate talbe ,indexs ,trigger, procedure, function, drop table 。
truncate table , 。
, 。
, drop;
, , truncate;
(always with a WHERE clause), delete.
1.DELETE
?DML
?
?
DELETE FROM
WHERE
2.TRUNCATE TABLE
?DDL
?
?
? delete 。
TRUNCATE TABLE
1、TRUNCATE 。 ROLLBACK Delete , TRUNCATE 。
2、TRUNCATE DDL , DDL , , TRUNCATE ROLLBACK 。
3、TRUNCATE 。 , TRUNCATE Delete 。
4、TRUNCATE Delete 。
5、 , delete 。
6、 。
oracle , delete , , delete , , 。
oralce HWM , oracle 。 , , delete , , , 。 truncate 。 , , , , 。 select , , , , delete , delete 。