-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unknown column 'id desc' in 'order clause'" #4
Labels
bug
Something isn't working
Comments
这是你表结构中没有 id 字段 所以不能按照id排序 |
我确认是有的这点不用太怀疑哈。我从gorm替换到gosql又都换回去了... gosql.OrderBy("id") 这个都行,gosql.OrderBy("id desc")这个不行。你说没id字段就说不过去了。 |
抱歉,没仔细观察到提示。我将尽快修复它。 |
fixed! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
gosql.OrderBy("id desc"),
The text was updated successfully, but these errors were encountered: