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 |
Tags
- Sring Functions and Operators
- Date and Time Functions
- Date and Time Function
- 오라클
- 티베로
- String Function and Operators
- 전자정부표준프레임워크
- HTTP
- String Functions and Date Operators
- Tibero
- 방화벽
- Oracle
- SVN
- 전자정부 표준프레임워크
- 윈도우
- String Functions and Operators
- Data and Time Functions
- MySQL
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