CREATE TABLE booger_copy LIKE testing.booger;
INSERT booger_copy SELECT * FROM testing.booger;
If you want to copy only half of the existing table then, you can use LIMIT keyword in the select Query
MySQL: Make a copy of an existing table in MySQL
We can create a copy of an existing table using the following SQL statements.
Subscribe to:
Post Comments (Atom)
Resolving Package Conflict with Level-Zero Installation; Fixing dpkg Error
Preparing to unpack level-zero_1.20.2+u24.04_amd64.deb ... Unpacking level-zero ( 1.20.2 ) ... dpkg: error processing archive level-zero_1....
-
How to fix Warning: mysql_connect(): Can't connect to local MySQL server through socket '/var/mysql/mysql.sock' Apparently, Ma...
-
If you get the following error while installing FFMPEG or other packages on CentOS 7. Requires: libva.so.1(VA_API_0.33.0)(64bit) Follow...
-
Common error: fallocate: fallocate failed: Text file busy in ubuntu OS Check the allocation: free -m or sudo swapon --show Make sure ...
No comments:
Post a Comment