Топ-100
 

QUARTER

База данных: MySQL
Текст

Syntax:
QUARTER(date)

Returns the quarter of the year for date, in the range 1 to 4.

URL: https://dev.mysql.com/doc/refman/8.0/en/date-and-time-functions.html

Пример

mysql> SELECT QUARTER('2008-04-01');
-> 2