PostgreSQL – 필드 내 중복 값 제외 distinct

아래 글 참고

https://dog-developers.tistory.com/130

COLUMN_1의 값이 중복 값 존재 시 중복 값을 제거

SELECT 
	DISTINCT COLUMN_1 
FROM TABLE_NAME;

COLUMN_1 + COLUMN_2의 값이 중복 값 존재 시 중복 값을 제거

SELECT 
	DISTINCT COLUMN_1 , COLUMN_2
FROM TABLE_NAME;

추가 참고

https://redk.tistory.com/37 – Django ORM distinct()




Enjoy Reading This Article?

Here are some more articles you might like to read next:

  • a post with plotly.js
  • a post with image galleries
  • a post with tabs
  • a post with typograms
  • a post that can be cited