Skip to content

Instantly share code, notes, and snippets.

@leedohyung-dba
Last active July 9, 2018 02:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save leedohyung-dba/b1f67d4395c6c625bc53f7292699de09 to your computer and use it in GitHub Desktop.
Save leedohyung-dba/b1f67d4395c6c625bc53f7292699de09 to your computer and use it in GitHub Desktop.
delete from [テーブル名];
delete from [テーブル名];
TRUNCATE TABLE [テーブル名];
// 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