◆selectselect (모두) 또는 열(column)의 이름 from 테이블이름ex) select from tableNameselect columnName from tableNameselect 콤마로 보여줄 column이름과 계산함수를 여러개 사용 가능select
다루어야 할 테이블이 많아지기 때문에중복 포함 다 합쳐서 보여주는 inner join 왼쪽 집합 기준, 또 join한 필드 기준으로 중복(교집합)된 것은 하나로 합쳐서 보여주는 left join각각의 쿼리문을 합쳐서 사용할 때는 두 문단 사이에 union ALL을 사용
◇select에서 출력 갯수 제한 select \* from 테이블 limit 숫자◇where 특정 칼럼 지정하기where 칼럼 = ''특정 문자만 지정하기 like '%문자%'◇묶기group by 지정하고 싶은 칼럼◇정렬(기본이 오름차순)order by 칼럼 이름내림
1주차▶select column이름 또는 \*from 테이블where column이름 \*selectculumn이름limitcountdistinctex) count(distinct(payment))실행 순서는 안쪽 괄호부터▶whereand != between andin