Mysql Copy Table Structure To New Table

Last modified: 
Friday, May 1st, 2015
Topics: 
MySQL

Copy Mysql Table Structure Only

To create a new table with same structure as an existing table, but not the data, use the following:

CREATE t1 LIKE t2;


The operator of this site makes no claims, promises, or guarantees of the accuracy, completeness, originality, uniqueness, or even general adequacy of the contents herein and expressly disclaims liability for errors and omissions in the contents of this website.