开发者

Merging multiple tables into one result

I have two tables for a facebook and twitter stream. Those tables have to be separated, so there's no point merging them into one table. But here's the thing. I want to have all the results from those two tables merged into one result and I cant seem to figure out how to get that working.

Oh, and it has to be fast. I read something about merging multiple tables into one table and then getting the results from that but that doesn't seem fast enough for me.

Should I do it in PHP and MySql or can it be done just in na开发者_如何转开发tive MySql (preferred).

The results will be ordered by date which is saved in both tables.

Can anyone help me, or point me in the right direction?

Thanks!


Have you had a look at

UNION ALL

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜