📜  mysql join column order By and group By - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:56.744000             🧑  作者: Mango

代码示例1
SELECT GROUP_CONCAT( table2.id ORDER BY table2.created_at DESC )
FROM table1 INNER JOIN table2 ON table1.id  = table2.table1_id
GROUP BY
table1.id
ORDER BY
table2.created_at