CREATE TABLE TEAMS_COPY1 LIKE TEAMS
mysql>
mysql> CREATE TABLE IF NOT EXISTS TEAMS
-> (TEAMNO INTEGER NOT NULL PRIMARY KEY,
-> EmployeeNO INTEGER NOT NULL,
-> DIVISION CHAR(6) NOT NULL);
Query OK, 0 rows affected (0.00 sec)
mysql>
mysql>
mysql> CREATE TABLE TEAMS_COPY1 LIKE TEAMS;
mysql>
mysql>
mysql> drop table teams;
Query OK, 0 rows affected (0.00 sec)
mysql>
Related examples in the same category