英文:
How do you get the total row count of a surrealdb select query?
问题
使用 SurrealDB,我可以像在传统 SQL 数据库中一样,通过以下方式获取查询的总记录数:
select count(*) from person
英文:
Using SurrealDB. is there a way that I can get the total amount of records for a query, like you would do in traditional SQL databases?
select count(*) from person
</details>
# 答案1
**得分**: 1
是的,它会是
SELECT count() FROM person GROUP BY count
更多信息请查看这里:https://surrealdb.com/docs/surrealql/functions/count
<details>
<summary>英文:</summary>
Yes, it would be
SELECT count() FROM person GROUP BY count
See more here: https://surrealdb.com/docs/surrealql/functions/count
</details>
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论