📜  datepart postgres - SQL 代码示例

📅  最后修改于: 2022-03-11 15:04:52.599000             🧑  作者: Mango

代码示例1
SELECT date_part('day', TIMESTAMP '2001-02-16 20:38:40');
Result: 16

SELECT date_part('hour', INTERVAL '4 hours 3 minutes');
Result: 4