lundi 16 février 2015

Android: Foreign Key (want every car have its own record to be save in SQLite)

My android application is about car management. i will have list of cars and their management like (fuel, traveling, repair). suppose i have 2 cars in list i) Honda ABC 123. ii) Toyota ABC 298.


What should i do to store the records in table (fuel, traveling, repair) of specific car? I tried foreign key in fuel, traveling and repair tables of car table. but the value of foreign key is null. I am confused what to do.


Aucun commentaire:

Enregistrer un commentaire