MySQL报错:SQLiteLog: (1) near "order": syntax error解决方法

数据库报错信息:

E/SQLiteLog: (1) near "order": syntax error
D/AndroidRuntime: Shutting down VM
E/AndroidRuntime: FATAL EXCEPTION: main
                  Process: com.newwbbie.redhat, PID: 24050
                  org.litepal.exceptions.LitePalSupportException: near "order": syntax error (code 1): , while compiling: SELECT * FROM order ORDER BY id LIMIT 1

原因:

order是MySQL数据库的关键字,换个数据库名就可以解决了。

你可能感兴趣的:(MySQL)