Android column '_id' does not exist?

前端 未结 8 952
野性不改
野性不改 2020-11-22 15:39

I\'m having trouble with something that works in the Notepad example. Here\'s the code from the NotepadCodeLab/Notepadv1Solution:

String[] from = new String[         


        
8条回答
  •  迷失自我
    2020-11-22 16:06

    Tim Wu's code really works...

    If you are using db.query, then it would be like this...

    db.query(TABLE_USER, new String[] { 
                    "rowid _id",
                    FIELD_USERNAME,
                    }, 
                    FIELD_USERNAME + "=" + name, 
                    null, 
                    null, 
                    null, 
                    null);
    

提交回复
热议问题