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.
いくつかのmysqlクエリを実行する必要がありますが、必要なすべてのデータを複数ではなく1つのクエリで取得したいと思います。
これをサブクエリに変換するにはどうすればよいですか?
SELECT * FROM categories ORDER BY categoryName ASC SELECT * FROM locations ORDER BY locationName ASC
これを試して...
SELECT * FROM categories,(SELECT * FROM locations ORDER BY locationName ASC) AS location ORDER BY categoryName ASC