1
0
dwelling-home/pkg/mindflow/database/sqlite/queries/postGetAll.sql

12 lines
310 B
MySQL
Raw Normal View History

SELECT
`post`.`post_id`,
2023-05-20 06:26:52 +04:00
`category`.`category_id` AS `category_id`,
`category`.`name` AS `category`,
`post`.`date`,
`post`.`title`,
`post`.`url`,
`post`.`body`
FROM `post`
LEFT JOIN `category`
2023-05-20 06:26:52 +04:00
ON `post`.`category_id` = `category`.`category_id`
ORDER BY `post`.`date` DESC;