[Database] SQL Select문 실행 순서

정현명·2022년 3월 16일
0

Database

목록 보기
11/17
post-thumbnail

Select문 실행 순서


select columns
from table_name
where conditions
group by grouping column
having grouping conditions
order by col ASC || DESC

// 실행 순서 : from - where - group by - having - select - order by 

// where 절 후에 group by를 하므로 grouping 된 것들 중 having에서 조건을 준다
profile
꾸준함, 책임감

0개의 댓글