简体   繁体   中英

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.

something like select element from table X where time is most recent

select element from table X order by time desc limit 1

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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