Are you first timer at Why not join us and start exchange your programming knowledge with everyone. Register today!

Create new table with mySQL query

0 votes
added Aug 4, 2017 in mySQL by theoh_lee Corporal (810 points)
edited Jul 12 by LC Marshal

In order to create table in database, you need at least one column;

CREATE TABLE new_table LIKE old_table;


CREATE TABLE ... LIKE to create a new empty new_table based on the definition of old_table, including any column attributes and indexes defined in the old_table.

Please log in or register to response this reference. - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.