如何使用Objection.js编写查询?
SELECT AVG(field), COUNT(*) FROM tab
请帮帮我
发布于 2021-07-01 18:25:53
试试这个:
const result = await Tab.query().avg(`field`).count(`*`) console.log(result[0].avg, result[0].count)
https://stackoverflow.com/questions/66790896
相似问题