PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Saturday, March 5, 2022

[FIXED] How to merge two tables that have the same schema into one, whith phpmyadmin

 March 05, 2022     merge, php, phpmyadmin     No comments   

Issue

I have two tables that have the same schema (tab1 and tab2), I would like to know how to merge them into one table, in a way to append tab2 under tab1.

I use phpmyadmin with WAMP.

to sum up what i want:

tab1

+tab2

= tab3 (tab3 = tab1 U tab2)

thank's


Solution

To answer your first question, in phpMyAdmin, open tab2, Operations > Copy table, choose tab1, and select Data only.

If you really want a tab3, open tab1, Operations > Copy table (structure and data) to tab3, then open tab2, Operations > Copy table (data only) to tab3.



Answered By - Marc Delisle
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing