MySQL Duplicate a Table – Quick Tip

Looking to duplicate a table into a new table – it is very simple:

   CREATE TABLE `high_risk_old` LIKE high_risk;
   INSERT INTO `high_risk_old` SELECT * FROM `high_risk`;
Advertisements