I need to select only the year from the record date.
SELECT *, DATE_FORMAT('release','%Y') AS release_year FROM books
but doesnt work. The result in phpmyadmin is NULL.
SELECT *, YEAR(`release`) AS release_year FROM books
I think release is a MySQL keyword. Try to wrap it around ``
release
1.4m articles
1.4m replys
5 comments
57.0k users