Advertisement
juanrufino

Untitled

Jul 15th, 2019
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. ALTER DATABASE `etracs254_bukidnon` CHARACTER SET 'utf8' COLLATE 'utf8_general_ci';
  2. SELECT CONCAT('ALTER TABLE ', TABLE_NAME, ' CONVERT TO CHARACTER SET utf8 COLLATE utf8_general_ci;')
  3. FROM information_schema.TABLES
  4. WHERE TABLE_SCHEMA = 'etracs254_bukidnon' AND TABLE_TYPE != 'VIEW';
  5.  
  6. SET FOREIGN_KEY_CHECKS = 0;
  7. -- put result here
  8. SET FOREIGN_KEY_CHECKS = 1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement