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

Create new table with mySQL query

0 votes
6 views
added Aug 4, 2017 in mySQL by theoh_lee Corporal (810 points)
recategorized Jul 18, 2018 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.

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...