Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mysql tables

Status
Not open for further replies.

maryer

IS-IT--Management
Jun 10, 2002
16
CY
I have 2 mysql tables (request and admin parts) for the one form. now i need to merge them into one without losing any data. How can i manage to merge them (copy data from the admin to the request table?). They are both use the same ID number, and for each form there is one ID number in both tables. Should I update table requests set bla bla bla where id=x? separately or there is another way to make them into one table, because both tables are big enough, so it will take a long time to update each id separately.
Thank you in advance
 
something like this:

INSERT INTO tableA (a.col1,a.col2) SELECT b.col1,b.col2 FROM tableA a, tableB b WHERE
a.id = b.id;
***************************************
Party on, dudes!
[cannon]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top