Php 获取即将到来的生日mysql时间戳
我想展示即将到来的生日。 生日通过mysql的时间戳存储 我在前面的问题中发现了以下代码:Php 获取即将到来的生日mysql时间戳,php,mysql,timestamp,Php,Mysql,Timestamp,我想展示即将到来的生日。 生日通过mysql的时间戳存储 我在前面的问题中发现了以下代码: select * from t order by (case when month(date(from_unixtimestamp(user_birth))) = month(now()) and day(date(from_unixtimestamp(user_birth))) > day(now()) or month(date(
select *
from t
order by (case when month(date(from_unixtimestamp(user_birth))) = month(now()) and
day(date(from_unixtimestamp(user_birth))) > day(now()) or
month(date(from_unixtimestamp(user_birth))) > month(now())
then 1 else 0
end) desc,
month(date(from_unixtimestamp(user_birth))),
day(date(from_unixtimestamp(user_birth)))
limit 6
但这不适用于我的服务器上不存在的函数
如何执行此操作?函数的名称为