简体   繁体   中英

Mysql create copy of table and all of the data

I need to create a backup copy of a table and all of the data in it.

This is what I have tried so far:

SELECT *
INTO copy_cust
FROM Customers;

Any help would be greatly appreciated.

You should use:

CREATE TABLE copy_cust
          AS SELECT *
               FROM Customers

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM