Last active
July 9, 2018 02:14
-
-
Save leedohyung-dba/b1f67d4395c6c625bc53f7292699de09 to your computer and use it in GitHub Desktop.
TRUNCATEとDBMS間の違い ref: https://qiita.com/leedohyung-dba/items/e9130ee17781590bae8e
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
delete from [テーブル名]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
delete from [テーブル名]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
TRUNCATE TABLE [テーブル名]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// for CakePHP2 | |
$this->query('TRUNCATE ' . $this->table . ';'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment