9 lines
212 B
MySQL
9 lines
212 B
MySQL
|
SELECT
|
||
|
`post`.`post_id`,
|
||
|
`category`.`name` AS `category`,
|
||
|
`post`.`date`,
|
||
|
`post`.`title`,
|
||
|
`post`.`body`
|
||
|
FROM `post`
|
||
|
LEFT JOIN `category`
|
||
|
ON `post`.`post_id` = `category`.`category_id`;
|