Flower in my dev/SQL
<SQL>[WHERE]
꽃선생
2017. 2. 2. 23:26
[WHERE]
일명(?) 조건절
위치 : FROM절 다음
사용방법
1
2
3 |
select some_colomn01, some_colomn02
from some_table01
where some_colomn03 = 0 |
cs |
연산
1
2
3
4
5
6
7
8
9
10
11 |
= 같다.
<> 같지 않다.
!= 같지 않다.
< ~보다 작다.
<= ~보다 작거나 같다.
!< ~보다 작지 않다.
> ~보다 크다.
>= ~보다 크거나 같다.
!> ~보다 크지 않다.
between 두 개의 특정한 값 사이
is null 값이 null 이다. |
cs |
사용예
1
2
3
4
5
6
7 |
select some_colomn01, some_colomn02
from some_table01
where some_colomn03 between 3 and 10
select some_colomn01, some_colomn02
from some_table01
where some_colomn03 is null |
cs |
* null과 값이 없는 것은 다른 것이다.