0

我有这种查询,我会尽量让它简单易懂,他的查询要大得多:)

$query = "SELECT * FROM Artist";
$query2= "SELECT * FROM News";

Artist 和 News 中的所有表结构都是相同的行等

身份证标题帖子

是否可以将这两个查询合二为一,并执行 shuffle ($query);

4

1 回答 1

2
select ID, Title, Posts from Artist, 'Artist' as Type
union all
select ID, Title, Posts from News, 'News' as Type
于 2013-10-19T19:29:29.063 回答