step1:
Intialize a SQLiteDatabase variable ( SQLiteDatabase sample = null; )
step2:
Instantiate above variable Like sample = this.openOrCreateDatabase(DATABASE_NAME,MODE_PRIVATE,null);
step3:
This step is for to create a table in the database
sample.execSQL(CREATE TABLE IF NOT EXISTS TABLE_NAME ( FIRSTNAME VARCHAR , LASTNAME VARCHAR));
These Three Steps Will Create a database with a table
No comments:
Post a Comment