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
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
Share on other sites

Splitting the table now is causing a few more problems than expected and I'm going to put it all together again I think. I'll have to bigdump it!

 

Out of curiosity, would it have been possible to have done what I was trying to do?

 

Many thanks

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.