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

no such column when select #830

Open
hensonwells opened this issue Sep 27, 2022 · 0 comments
Open

no such column when select #830

hensonwells opened this issue Sep 27, 2022 · 0 comments

Comments

@hensonwells
Copy link

could use this func " public static List listAll(Class type, String orderBy) "
Caused by: android.database.sqlite.SQLiteException: no such column: updateTime (code 1): , while compiling: SELECT * FROM DATA ORDER BY updateTime desc

I have been define it,but haven't find this column,but the other could work,such as: dataid.

here is my class:
public class Data extends SugarRecord {
@unique
String dataid;
String userid;
String name;
String phone;
String age;
String isTest;
String creatTime;
String updateTime;
public Data(){}
}

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

1 participant