首先,我创建了一个数据库表,Android SQLite DB
如下所示:
private static final String CONTENT_DB_CREATE = "CREATE TABLE "
+ CONTENT_DB_NAME + "( " + CONTENT_ID + " INTEGER PRIMARY KEY AUTOINCREMENT, " +
CONTENT_TITLE + " TEXT, " +
CONTENT_FULLTEXT + " TEXT , " +
CONTENT_STATE + " TEXT , " +
CONTENT_NEW + " TEXT, " +
CONTENT_HEADER + " TEXT , " +
CONTENT_COLOR + " TEXT , " +
CONTENT_NEXT + " TEXT , " +
CONTENT_PREVIOUS + " TEXT );";
然后我改为:
private static final String CONTENT_DB_CREATE = "CREATE TABLE "
+ CONTENT_DB_NAME + "( " + CONTENT_ID + " INTEGER PRIMARY KEY AUTOINCREMENT, " +
CONTENT_TITLE + " TEXT, " +
CONTENT_FULLTEXT + " TEXT , " +
CONTENT_STATE + " INTEGER , " +
CONTENT_NEW + " INTEGER, " +
CONTENT_HEADER + " TEXT , " +
CONTENT_COLOR + " INTEGER , " +
CONTENT_NEXT + " TEXT , " +
CONTENT_PREVIOUS + " TEXT );";
现在如何确定数据类型已更改!