Advertisement
epl70

Truncate without constraints

Sep 2nd, 2015
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.07 KB | None | 0 0
  1. SET FOREIGN_KEY_CHECKS = 0;
  2. TRUNCATE table1;
  3. SET FOREIGN_KEY_CHECKS = 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement