vendredi 11 décembre 2015

How to insert the record the record at the specific ID in sqlite android

I am newbie to android SQLite and i had a doubt about inserting records in sqlite. How we can insert a record at the pirticular position into the sqlite i,e. if i am inserting first record it will goes to the first position,Then i'll skip the second record and then insert the third record and it will store as record 3 with ID 3 as shown below

      ID            value
      1              abc
      2                 
      3              def
      4              ghi
      5              jkl
      6                 

Like this can anyone tell me how to achieve this

Aucun commentaire:

Enregistrer un commentaire