Categories
How to get only the year from a date?
The table has a column with the publication date 2022-01-01 22:08:43. How to get only a year?
Answer the question
In order to leave comments, you need to log in
SELECT id, YEAR(colName) FROM tblName
Didn't find what you were looking for?
Ask a Question
731 491 924 answers to any question