时间戳字符串到SQL中的时间戳
日期数据从条纹start_date保存为字符串时间戳,例如“ 1652789095”。 现在,我想在过去12个月中使用此时间戳字符串表格过滤。 我应该怎么办 ? 如何使用此时间戳字符串过滤?
Date data saved from stripe start_date as string timestamp like "1652789095".
Now I want to filter with this timestamp string form last 12 months.
what should I do ?
how can I filter with this timestamp string?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这些是一些示例 - 我敢肯定有很多选择可以使用。
转换为日期
使用Unix Timestamps工作,
我不是一个MySQL的家伙,真的可以原谅任何语法错误,并根据需要修复SQL以在MySQL中工作。
资源:
postgresql:如何从Unix Epoch转换为迄今为止? /a>
https://www.postgresonline.com/article_pfriendly/3.html/3.html
These are some examples - I'm sure there are plenty of options that would work.
convert to date
work with unix timestamps
I'm not a MySQL guy really so forgive any syntax errors and fix up the sql as needed to work in MySQL.
Resources:
PostgreSQL: how to convert from Unix epoch to date?
https://www.postgresonline.com/article_pfriendly/3.html