Link to home
Start Free TrialLog in
Avatar of Richard Korts
Richard KortsFlag for United States of America

asked on

Easy way to copy MySQL table to another

I have a mysql table that I want to copy all the rows over to another table (same database). The new table (empty) has all the same columns as the old, except for one mare added, which is a unique key. Can I do this is MySQL? I know how to do it in php, but to my knowledge I have to use mysqli functions & code an INSERT, naming every column in the table, there are about 30ish.

Just looking for an easier way.

Thanks
Avatar of lenamtl
lenamtl
Flag of Canada image

Hi,

You can use PHPMyAdmin and export / import DB easily
You can choose from several format and advance settings
or you need to do it using PHP?
ASKER CERTIFIED SOLUTION
Avatar of Julian Hansen
Julian Hansen
Flag of South Africa image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial