Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- HTTP
- Oracle
- Data and Time Functions
- 방화벽
- Date and Time Function
- MySQL
- SVN
- Tibero
- String Functions and Date Operators
- 티베로
- 전자정부표준프레임워크
- String Function and Operators
- 오라클
- String Functions and Operators
- 윈도우
- Date and Time Functions
- 전자정부 표준프레임워크
- Sring Functions and Operators
Archives
- Today
- Total
웹이야기
MySQL YEAR() 본문
MySQL 날짜함수, 시간함수
YEAR()
-
YEAR(date)
의 형태
Returns the year for date, in the range 1000 to 9999, or 0 for the "zero" date.
mysql> SELECT YEAR(NOW());
+-------------+
| YEAR(NOW()) |
+-------------+
| 2020 |
+-------------+
1 row in set (0.00 sec)
mysql> SELECT YEAR('2020-04-01');
+--------------------+
| YEAR('2020-04-01') |
+--------------------+
| 2020 |
+--------------------+
1 row in set (0.00 sec)
'D > MySQL' 카테고리의 다른 글
MySQL String Function and Operators (0) | 2020.04.07 |
---|---|
MySQL YEARWEEK() (0) | 2020.04.05 |
MySQL WEEKOFYEAR() (0) | 2020.04.05 |
MySQL WEEKDAY() (0) | 2020.04.05 |
MySQL WEEK() (0) | 2020.04.05 |
Comments