我的SQL DB有数以百万计记录的表,其中一些有数亿记录,我的主要选择是大约4000行代码,但结构如下: (select field from tableX X... where A.seq = X.seq ...) field5, (select field from tableN Z... where A.seq = Z.seq ..
我在postgres数据库里有一张大桌子,上面有几个单元。现在我需要每60秒检索一个位置。在Mysql中,这是小菜一碟:select * from location_table where unit_id = '123' GROUP BY round(timestamp / 60)
但在postgres我也有日期格式的时间戳,而不是时代格式的时间戳。