Skip to content
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

排序bug #84

Closed
oleilei opened this issue Sep 19, 2017 · 2 comments
Closed

排序bug #84

oleilei opened this issue Sep 19, 2017 · 2 comments

Comments

@oleilei
Copy link

oleilei commented Sep 19, 2017

用户管理-按编号排序,sql异常:
`### SQL: select user_id, username, password, salt, realname, avatar, phone, email, sex, locked, ctime from upms_user order by userId desc LIMIT 10

Cause: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'userId' in 'order clause'

; bad SQL grammar []; nested exception is com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column 'userId' in 'order clause'`

@greydesolate
Copy link
Contributor

select user_id, username.... from upms_user order by userId desc LIMIT 10

这里应该用user_id吧?

@shuzheng
Copy link
Owner

已修复

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants