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

SQLiteException: no such column: T.SONG_ID (code 1): , while compiling: SELECT T."SONG_ID",T."ALBUM_ID",T."TITLE",T."ARTIST",T."DURATION",T."DATA",T."IS_FAVORITE",T."ALBUM" FROM "tb_music" T #973

Open
LdwHly opened this issue Jun 18, 2019 · 1 comment

Comments

@LdwHly
Copy link

LdwHly commented Jun 18, 2019

旧版本的app里,我用了ormlike,现在想换成greeDao,出现了这个错误

@greenrobot-team
Copy link
Collaborator

Well, make sure your table has a SONG_ID column. Or you can specify the name a class field should have using @Property(nameInDb = "SONG_ID").
http://greenrobot.org/greendao/documentation/modelling-entities/#Basic_properties

-- Check out ObjectBox, our new fast, easy to use database!

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

2 participants