好几种方式都用过了, 查询结果就是有问题
Comment From: github-actions[bot]
The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 30 days if no further activity occurs. if you are asking question, please use the Question template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ Search Before Asking ✨
Comment From: jasonchuan
try to add order by field. or use Limit(XX) and Offset(XX)
Comment From: github-actions[bot]
The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 30 days if no further activity occurs. if you are asking question, please use the Question template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ Search Before Asking ✨
Comment From: songhaozhan
我也遇到可这种问题,怎么解决
Comment From: 669514210
我也遇到可这种问题,怎么解决 "github.com/jinzhu/gorm" _ "github.com/jinzhu/gorm/dialects/mysql"
安装旧版本的, 不要用gorm官网的
Comment From: jasonchuan
排序了么?
Comment From: 669514210
排序了么?
![]()
查询结果没有问题。
Comment From: songhaozhan
我也遇到可这种问题,怎么解决 "github.com/jinzhu/gorm" _ "github.com/jinzhu/gorm/dialects/mysql"
安装旧版本的, 不要用gorm官网的
你的是哪个版本
Comment From: 669514210
我也遇到可这种问题,怎么解决 "github.com/jinzhu/gorm" _ "github.com/jinzhu/gorm/dialects/mysql"
安装旧版本的, 不要用gorm官网的
你的是哪个版本
"github.com/jinzhu/gorm" _ "github.com/jinzhu/gorm/dialects/mysql" 安装这两个就可以