0
如何从时间戳这样的时间戳字段中选择Postgresql DB 1969-11-28 00:00:00
在某个日期(例如3月7日)有生日的所有人。从时间戳字段中选择BDays
如何从时间戳这样的时间戳字段中选择Postgresql DB 1969-11-28 00:00:00
在某个日期(例如3月7日)有生日的所有人。从时间戳字段中选择BDays
您可以使用to_char()
只返回的月份和日期:
select *
from person
where to_char(bday, 'mm-dd') = '03-07'
,或者使用提取功能:
select *
from person
where (extract(month from bday), extract(day from bday)) = (3,7);
什么?你不是新来的..请更新你的问题和扩大你的解释 – sagi