我有這段代碼,它不工作。我想用最新的評論進行查詢後將訂單逆轉。Mysql子查詢顛倒順序
SELECT *
FROM(
SELECT users.id, users.nome, users.email,users.foto, comments.content
FROM users, comments
WHERE comments.posts_id=? AND comments.users_id=users.id
ORDER BY comments.id DESC LIMIT 5)
AS dummy
ORDER BY comments.timecomment ASC
謝謝!有用! –