从timestamp返回 integer
field : nextbillingdate is TIMESTAMP
SELECT EXTRACT(epoch FROM nextbillingdate) from fanclub.member where id =14
field : nextbillingdate is TIMESTAMP
SELECT EXTRACT(epoch FROM nextbillingdate) from fanclub.member where id =14
本文介绍了一种从数据库中的TIMESTAMP字段提取整数的方法,使用EXTRACT函数结合epoch将时间戳转换为整数形式,具体示例为从fanclub.member表的nextbillingdate字段中获取对应值。

被折叠的 条评论
为什么被折叠?



