MoonPoint Support Logo

 

Shop Amazon Warehouse Deals - Deep Discounts on Open-box and Used ProductsAmazon Warehouse Deals



Advanced Search
July
Sun Mon Tue Wed Thu Fri Sat
         
9
           
2011
Months
Jul


Sat, Jul 09, 2011 6:08 pm

Copying Table Structure

If you want to create a new table in an MySQL database that has the same structure, i.e., the same fields (columns) as an existing table, you can use the command below:

create table New_Table like Existing_Table;

New_Table = the name you wish to give to the new table
Existing_Table = the name of the existing table

Remember to use the same case of letters for the existing table name as were actually used for that table name. E.g., if the table name is "Existing_Table" use "Existing_Table" not "existing_table"

[/software/database/mysql] permanent link

Valid HTML 4.01 Transitional

Privacy Policy   Contact

Blosxom logo