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.
我有一个 knex.js 查询,如下所示:
db('table_name') .select('column') .where('condition') .intersect([ db('table_name') .select('column') .where('condition') ]);
查询运行并返回正确的结果。我需要的是在同一个查询中计算这些结果。我尝试.count()在最后追加,但它会引发错误。
.count()