我有以下代码创建我的表.我将数据插入其中,看起来像这样
_id date recordName total
--------------------------------------
7 2011 TestMaxRecord 5
Run Code Online (Sandbox Code Playgroud)
Java代码:
public static final String KEY_ROWID = "_id";
public static final String KEY_DATE = "date";
public static final String KEY_TOTAL = "total";
public static final String KEY_RECORD_NAME = "recordName";
private static final String DATABASE_CREATE_RECORDS = "create table " + DATABASE_TABLE_RECORDS + " ("
+ KEY_ROWID + " integer primary key autoincrement, "
+ KEY_DATE + " text not null, "
+ KEY_RECORD_NAME + " text not null, "
+ KEY_TOTAL …Run Code Online (Sandbox Code Playgroud)