Code example for SQLiteDatabase

Methods: execSQL

0
            super(context, DATABASE_NAME, null, DATABASE_VERSION);
        } 
 
        @Override 
        public void onCreate(SQLiteDatabase db) {
            db.execSQL(DATABASE_CREATE);
            db.execSQL(DATABASE_INIT_AOKP);
            db.execSQL(DATABASE_INIT_CQD);
            db.execSQL(DATABASE_INIT_DEFAULT);
            db.execSQL(DATABASE_INIT_NOM);
            db.execSQL(DATABASE_INIT_SOS);
        } 
 
        @Override 
        public void onUpgrade(SQLiteDatabase db, int oldVersion,
                              int newVersion) {
            // db.execSQL("DROP TABLE IF EXISTS names"); 
            // onCreate(db); 
            if (oldVersion == 1) {
                db.execSQL(DATABASE_INIT_AOKP);
Stop searching for code, let great code find you!  Add Codota to your java IDE