2017-03-09 62 views

回答

1

您需要檢查針對當前日期:

birthday::date < (now() - '13 years'::interval) 
0

您可以用當前的日期比較的生日是這樣的:

check (birthday + '13 years'::interval <= current_date)