SQL

[SQL] WHERE 절

홍또~ 2022. 5. 1. 20:44

wherer : 가져올 데이터의 조건을 명시하는 라인

- 한개이상의 조건 작성 가능

예시

where columnName = a and b 

where columnName != 'c'

where columnName in ( 'English' , 'Korea')

where colunmName like 'a%'

where columName not like '%a'

createdAtbetween '2022-04-01' and '2022-05-01'

 

문자열의 조건은 따옴포( ' ' OR  " ") 로 감싸주어야 함

'SQL' 카테고리의 다른 글

[SQL] HeidiSQL 윈도우 접속 불가 현상  (1) 2022.08.27
[SQL] 집계 함수  (0) 2022.05.02
[SQL] Having  (0) 2022.05.02
[SQL] Group by  (0) 2022.05.02
[SQL] Order by  (0) 2022.05.01