| How to copy table structure |
Applies To |
|
| OS: Database: |
Any Any |
|
SELECT *This code copies the structure of table my_old_table and creates a new table called my_new_table with identical structure.
INTO my_new_table
FROM my_old_table
WHERE 1=2