Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
DolphinDB“设备”中的一个流表用于存储3000个设备的实时数据。我想知道每个设备的最新记录。设备的架构如下:
name typeString typeInt --------- ---------- ------- time DATETIME 11 device_id SYMBOL 17 mem_free LONG 5 mem_used LONG 5
select top 1 * from t context by device_id csort time desc