我是sqlite的新手,我正在尝试使用sqlite开发应用程序,但我遇到了错误
没有这样的专栏:提醒.
我搜索了很多网站,但找不到问题.我不知道我需要发布的所有细节.但我在这个logcat中遇到错误.
引起:android.database.sqlite.SQLiteException:没有这样的列:提醒(代码1):,同时编译:SELECT id,party_name,bank_name,reminder,expiry_date,reminder_date,cheque_number,amount FROM financeTBL ORDER BY idDESC
DatabaseHandler类
public class DatabaseHandler extends SQLiteOpenHelper {
private Context ctx;
public DatabaseHandler(Context context) {
super(context, Constants.DB_NAME, null, Constants.DB_VERSION);
this.ctx = context;
}
@Override
public void onCreate(SQLiteDatabase db) {
String CREATE_ALERT_TABLE = "CREATE TABLE " + Constants.TABLE_NAME + "("
+ Constants.KEY_ID + " INTEGER PRIMARY KEY,"
+ Constants.KEY_PARTY_NAME + "TEXT,"
+ Constants.KEY_CHEQUE_NUMBER + "TEXT"
+ Constants.KEY_AMOUNT + "TEXT"
+ Constants.KEY_EXPIRY_DATE + "LONG"
+ Constants.KEY_REMINDER_DATE + "LONG"
+ Constants.KEY_REMINDER + "Text,"
+ …Run Code Online (Sandbox Code Playgroud)