【发布时间】:2014-09-12 08:56:58
【问题描述】:
我刚刚在创建表时分配了默认值,但是当我想获得分配值时出现错误:
db.execSQL("CREATE TABLE IF NOT EXISTS Nooo (N_id INTEGER DEFAULT 0, yes TEXT DEFAULT '1');");
SQLiteDatabase DB = this.getReadableDatabase();
Cursor myCursor = DB.rawQuery("SELECT yes FROM Nooo",null);
myCursor.moveToFirst();
String aa=myCursor.getString(0);
上面一行发生了错误。
【问题讨论】: