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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

update mysqld db with new field

Status
Not open for further replies.

coderwasp

Programmer
Jan 10, 2007
24
US
I have 2 MySql dbs on 2 different servers.

I need 2 copy the data from one field in db1 and add it into a new field ind db2.

What is the easiest way to do this? Both tables have the same number of records.

In db1, tableoriginal let's say there's an int field named id and a field named copyme (varchar). The second database has a table called tablenew and has a field called first_table_id that mirrors the original table's id field and I just inserted a new field called pastemehere (varchar).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top