【发布时间】:2021-10-31 21:52:02
【问题描述】:
如何选择每个月的最大时间戳?
【问题讨论】:
-
SELECT MAX(timestamp) ... GROUP BY month ... -
或
SELECT ... WHERE cust_id = 756 and end_date is null -
您的问题确实缺少有用的信息
-
欢迎,为了改善您在 SO 上的体验,请 take the tour 并阅读 how to ask、On Topic question,然后查看 Question Check list、perfect question 以及如何创建 @987654326 @
-
今后请不要使用截屏来显示数据。在您的问题中包含缩进四个空格的数据文本。
标签: mysql sql datetime timestamp history-tables