crypto_currency_id | integer | last_updated | timestamp without time zone |
crypto_currency_id可能有多个条目。我的问题是,如何仅为表中的每个唯一crypto_currency_id选择最新的条目?例如,如果我的
我正在尝试添加货币价格,我得到的是一个对象数组。但是每次我收到这个数据时,货币类型可能在3之间不同,并且在整个对象数组中保持不变。我这里的问题是,当我尝试预先对密钥进行加法时,它是哪个密钥(Currency_type)。我尝试了一种使用map和OR运算符的方法。column by query from crypto DB table
const allPrices = await Crypto.findAll({ attributes: [req.que