I have a SQLite table and want to set it with the default value for a while. How can i do this?
The following is the code for my DatabaseHelper code:
import android.content.Context; import android.database.sqlite.SQLiteDatabase; import android.database.sqlite.SQLiteOpenHelper; public class DatabaseHelper extends SQLiteOpenHelper { private static final String DATABASE_NAME="iFall.db"; public static final String TIME="time";
I want to set the default value to 50 for the column time.
tech_learner
source share