browse: forums | FAQ
Connecting Tech Pros Worldwide

Hey there! Do you need MySQL Database help?

Get answers from our community of MySQL Database experts on BYTES! It's free.

Linked tables

Dave
Guest
 
Posts: n/a
#1: Jul 20 '05
Hi everyone.

I have an interesting problem. We have two PHP shops that use MySQL
databases. The database structures are exactly he same. Due to the two
companies now working together we want the products to be the same on
both, but not the customers or the looks of the shops (both shops are
oscommerce). what we really want to do is in the mysql database remove
the products/categories/manufacturers tables and link them to another
database. Is this possible in MySQL without rewriting all the PHP?

All we want is linked tables like you can have in Access, not linked
tables in the PHP as to rewrite the PHP is rather a major job!



Bill Karwin
Guest
 
Posts: n/a
#2: Jul 20 '05

re: Linked tables


Dave wrote:[color=blue]
> All we want is linked tables like you can have in Access, not linked
> tables in the PHP as to rewrite the PHP is rather a major job![/color]

Have you read about MERGE tables? That feature might do what you want.

http://dev.mysql.com/doc/mysql/en/ME...ge_engine.html

Regards,
Bill K.
Dave
Guest
 
Posts: n/a
#3: Jul 20 '05

re: Linked tables


Cool! thanks for that, it does very nearly what i want, but i have
managed to botch it so that it does exactly what i want.

Thanks for the help!

Bill Karwin <bill@karwin.com> wrote in message news:<coiafb01hrk@enews4.newsguy.com>...[color=blue]
> Dave wrote:[color=green]
> > All we want is linked tables like you can have in Access, not linked
> > tables in the PHP as to rewrite the PHP is rather a major job![/color]
>
> Have you read about MERGE tables? That feature might do what you want.
>
> http://dev.mysql.com/doc/mysql/en/ME...ge_engine.html
>
> Regards,
> Bill K.[/color]
Closed Thread