Create a table using LIKE

You can create a table that looks like another table. That is, you can create a table that includes all of the column definitions from an existing table.

The definitions that are copied are:

If the LIKE clause immediately follows the table name and is not enclosed in parenthesis, the following attributes are also included:

If the specified table or view contains an identity column, you must specify INCLUDING IDENTITY on the CREATE TABLE statement if you want the identity column to exist in the new table. The default behavior for CREATE TABLE is EXCLUDING IDENTITY. If the specified table or view is a non-SQL created physical file or logical file, any non-SQL attributes are removed.

Create a table EMPLOYEE2 that includes all of the columns in EMPLOYEE.

CREATE TABLE EMPLOYEE2 LIKE EMPLOYEE
Related information
CREATE TABLE