This is a discussion on "Merging databases!?" within the Databases section. This forum, and the thread "Merging databases!? are both part of the Program Your Website category.
|
|
|
|
|
![]() |
||
Merging databases!?
|
||
| Notices |
![]() |
|
|
LinkBack | Thread Tools |
|
||||
|
I have created a new database for a website, and now I get the old database from the client and they want to merge it with new one.
The problem is the old one has different names and tables. But they need it to be merged as soon as possible, What can I do ? This is very urgent ...
__________________
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
|
|
|
||||
|
Re: Urgent !
Please choose a better topic next time!
|
|
||||
|
Re: Merging databases!?
What kind of databases are we talkin' about? SQL? mySQL? Access?
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
|
||||
|
Re: Merging databases!?
both are mysql but they are different in structures.
the old one has a table of users with many fields but new one has some of them so i need to merge the old one with new one
__________________
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
|
||||
|
Re: Merging databases!?
I would just SELECT everything from both old tables and write the result into a new table with the correct format. Any fields in the new table that don't exist in the old ones would just be filled with a default value.
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
|
||||
|
Re: Merging databases!?
can u please give me the query command, coz i'm not very professional in mysql
__________________
Last Blog Entry: Throughout IRAN (Dec 10th, 2007)
|
|
||||
|
Re: Merging databases!?
Here's some (untested) code for starters. See if you can get it to work for you:
(Remember to make some backups!!!)
Last Blog Entry: 10 Reasons Why My Laptop Is Better Than Your Girlfriend (Dec 15th, 2007)
|
![]() |
| Thread Tools | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Databases? | Apocalyptic Poet | Classic ASP | 1 | Apr 23rd, 2008 12:24 |
| [SOLVED] Concerning speed: SSI, PHP, or pre-upload merging? | MikeHopley | Web Page Design | 14 | Oct 23rd, 2007 17:00 |
| Local Business Listing Merging | Morledge | Search Engine Optimization (SEO) | 2 | Oct 20th, 2007 12:25 |
| Merging images... maybe | da_stimulator | Web Page Design | 1 | Jan 22nd, 2005 01:32 |
| Access databases.... anyone know much? | benbacardi | Databases | 8 | Jul 2nd, 2004 18:14 |