Your issue may already be reported! Please search on the issue track before creating one.

What version of Go are you using (go version)?

go1.10.1 linux/amd64

Which database and its version are you using?

mysql

grom 如何使用limit查询的同时取得总的记录数?类似db查询时可以使用:SELECT SQL_CALC_FOUND_ROWS name, email FROM users WHERE name LIKE ‘a%’ LIMIT 10; SELECT FOUND_ROWS(); 谢谢大佬们,欢迎围观~

****

Comment From: jianyuanhao

同想知道 解决了吗?

Comment From: github-actions[bot]

This issue will be automatically closed because it is marked as GORM V1 issue, we have released the public testing GORM V2 release and its documents https://v2.gorm.io/docs/ already, the testing release has been used in some production services for a while, and going to release the final version in following weeks, we are still actively collecting feedback before it, please open a new issue for any suggestion or problem, thank you

Also check out https://github.com/go-gorm/gorm/wiki/GORM-V2-Release-Note-Draft for how to use the public testing version and its changelog

Comment From: ChinaHDJ1

我也想知道

Comment From: cicirise

any body who knows it ?