본문 바로가기
Database/MySQL

[Mysql] DISTINCT 중복 값 제거 함수

by java나유 2022. 7. 10.
SELECT count(distinct name) from animal_ins where name is not null;

count 안에 distinct 코드를 사용하여 중복값은 체크하지 않는 걸로 설정!

not null 은 =가 아님 is임

 

문제:https://school.programmers.co.kr/learn/courses/30/lessons/59408

728x90

댓글