Refactor query

This commit is contained in:
Rebwon
2021-10-20 17:19:18 +09:00
committed by MaengSol
parent bd4cdb5f97
commit 22271b6df4

View File

@@ -5,7 +5,7 @@
<select id="findAll" resultMap="articleId">
SELECT
DISTINCT(a.id) AS article_id, a.created_at
DISTINCT a.id AS article_id, a.created_at
FROM article a
LEFT OUTER JOIN article_tag atg ON atg.article_id = a.id
LEFT OUTER JOIN tag t ON t.id = atg.tag_id