SQLite android column not found

后端 未结 1 1050
自闭症患者
自闭症患者 2020-12-20 06:10

my code is correct is assume but even though it gives error coloumn not found for _hour & _min:

package com.example.ifest;


public class ProfileView ext         


        
相关标签:
1条回答
  • 2020-12-20 06:30

    It looks like you have changed the table schema inside DBHandler#onCreate() after running the app at least once. If so you need to increment DB_VERSION = 2.

    The database won't check the code inside onCreate() for a new schema on it's own, you need to tell the database to look for changes after you have made them. The easiest way to do this is by increasing the DB_VERSION.

    0 讨论(0)
提交回复
热议问题