You Are Here Home > Copy An Entire Table – Data & Structure

Copy An Entire Table – Data & Structure

Assume that we want to copy our ‘user’ table to a table called ‘backup’:

CREATE TABLE backup LIKE user;
INSERT INTO backup SELECT * FROM user;
Copy An Entire Table – Data & Structure
Filed under: MySQL   Posted by: Hamid

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment