LINUX.ORG.RU

История изменений

Исправление NeOlip, (текущая версия) :

SELECT `id`, `name`, `birthday` FROM `user` ORDER BY (ABS(DAYOFYEAR(CURDATE()) - DAYOFYEAR(`birthday`)));

Не?

Исходная версия NeOlip, :

SELECT `id`, `name`, `birthday` FROM `user` ORDER BY (ABS(DAYOFYEAR(curdate()) - DAYOFYEAR(`birthday`)));

Не?