Jump to content

MYSQL join maybe?


matfish

Recommended Posts

Hi there,

 

I have split my customers table into customers_2008 and customers_2009. How would I do a mysql search on both tables (I'm using php to output the results)?

 

I've looked into Joins but customers_2008.customerID = customers_2009.customerID is not going to work. I think a join is for foreign keys? Correct me if I'm using it wrong.

 

Many thanks

Link to comment
https://forums.phpfreaks.com/topic/148584-mysql-join-maybe/
Share on other sites

The customers table was 290Mb, so was trying to archeive it into "years". I've been having alot of trouble with the table lately and I have to keep optimising/repairing it.

 

If I could do the SQL to merge/join both tables then it would be easier. If not, then I will continue to use the whole table altogether again.

 

Many thanks

Link to comment
https://forums.phpfreaks.com/topic/148584-mysql-join-maybe/#findComment-780245
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.