1

我需要做一些 mysql 查询,但我宁愿在 1 个查询而不是多个查询中获取我需要的所有数据。

我如何将其变成子查询?

SELECT * FROM categories ORDER BY categoryName ASC
SELECT * FROM locations ORDER BY locationName ASC
4

1 回答 1

0

尝试这个...

SELECT * FROM categories,(SELECT * FROM locations ORDER BY locationName ASC) AS location ORDER BY categoryName ASC
于 2013-02-05T03:51:53.023 回答