Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有这种查询,我会尽量让它简单易懂,他的查询要大得多:)
$query = "SELECT * FROM Artist"; $query2= "SELECT * FROM News";
Artist 和 News 中的所有表结构都是相同的行等
身份证标题帖子
是否可以将这两个查询合二为一,并执行 shuffle ($query);
select ID, Title, Posts from Artist, 'Artist' as Type union all select ID, Title, Posts from News, 'News' as Type