Jump to content

Joining mysql_query result sets??


eatc7402

Recommended Posts

I need to run several to many small queries against the SAME database

tables resulting in identically structured (but containing different data)

$result set resources that I then need to make into ONE  large result.

 

Question. Is there an easy way to JOIN the result sets??

Do I need to convert them each to an array and then do an array_merge

on them? Is there an easier way? Can I use the resulting array in the

same manner as I used the result set to display the results?

 

eatc7402

 

Link to comment
Share on other sites

That would work in SOME cases, however I want to manipulate the results of

the queries on the PHP dide of things, so my question remains.

 

If I had a search of a thousand individual keys that would be a very very long

SQL statement. I'd rather do them one-by-one and combine the results as I go

on the PHP  side of things.

 

eatc7402

 

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.