Skip to content

Commit

Permalink
fix: SQL문에서 테이블 중복 이름 오류 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
zbqmgldjfh committed Jan 21, 2024
1 parent d28dd2e commit c03092b
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
delete
from notice
where notice.article_id in (select notice.article_id
from notice
group by notice.article_id
having COUNT(*) > 2);
DELETE
FROM notice
WHERE notice.article_id IN (SELECT *
FROM (SELECT article_id
FROM notice
GROUP BY article_id
HAVING COUNT(*) > 2) temp)

0 comments on commit c03092b

Please sign in to comment.