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

10 lines
250 B
MySQL
Raw Normal View History

SELECT
`post`.`post_id`,
2023-05-14 03:34:14 +04:00
`category`.`id` AS `category_id`,
`category`.`name` AS `category`,
`post`.`date`,
`post`.`title`,
`post`.`body`
FROM `post`
LEFT JOIN `category`
ON `post`.`post_id` = `category`.`category_id`;