I am saving accounts settings in sqlite database in a Table. In my app I want just 8 entries to be made as max number of accounts I can have is 8. I plan to do that by checking the Number of records in the table.
     @Override
     public void onCreate(SQLiteDatabase db) {
         String q="CREATE TABLE "+ DATABASE_TABLE + " (" +
                KEY_ROWID + " INTEGER PRIMARY KEY AUTOINCREMENT, "
                 + KEY_CTYPE + " TEXT NOT NULL,"
                 +  KEY_SNAME + " TEXT NOT NULL,"
                 +  KEY_SNUMB + " TEXT NOT NULL,"
                 +  KEY_USRN + " TEXT NOT NULL,"
                 +  KEY_PASS + " TEXT NOT NULL);"
My question is I want to be able to delete or edit a certain entry. Will I need to do some extra steps or will the database automaticaly replace the deleted entries with the ones that are newly aded and the NO of records remain less than 8 at all time.
 
    