简体   繁体   English

MySql旋转表上的最后一个条目

[英]MySql last entry on revolving table

How do I get the last entry into a table based on time? 如何根据时间获取表的最后一个条目? Time is the Key to the table. 时间是表格的关键。

It is a revolving 24 hour table that is "supposed" to update every minute. 它是一个旋转的24小时表,“应该”每分钟更新一次。

something like select element from table X where time is most recent 类似于表X中的select元素,其中时间是最近的

select element from table X order by time desc limit 1

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM