Skip to content

Instantly share code, notes, and snippets.

@siddug
Created January 9, 2015 21:16
Show Gist options
  • Save siddug/fb4a91ade955fcbc1083 to your computer and use it in GitHub Desktop.
Save siddug/fb4a91ade955fcbc1083 to your computer and use it in GitHub Desktop.
// create an instance of SQLiteDatabase using getWritableDatabase()
SQLiteDatabase writeDB = db.getWritableDatabase();
// Use execSQL function to pass SQL insert statement to execute
writeDB.execSQL("INSERT into test (count, name) values(0,'sample')");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment