Saving Data on Android


foreign key  that  references a primary key of another table. For example, say that you have an  Orders



Download 19,28 Mb.
Pdf ko'rish
bet121/292
Sana24.01.2022
Hajmi19,28 Mb.
#407089
1   ...   117   118   119   120   121   122   123   124   ...   292
Bog'liq
Bailey J., Dominguez A., Djermanovic D. - Saving Data on Android (1st Edition) - 2019

foreign key
 that 
references a primary key of another table. For example, say that you have an 
Orders
 
table that stores the number of Blu-ray sales for each movie like below:
In this case, the 
MovieID
 is a foreign key that identifies a unique movie record in 
your Movies table. Therefore, if you want to retrieve extra details about an available 
movie, you would only need to retrieve the movie row from your Movies table with 
that particular ID. As such, you don't have to store all of the data about ordered 
movies in the 
Orders
 table, you can just look up movie details using the foreign key. 
This makes each order object very light while holding enough data to look up more 
detailed information.
Although not all the database management systems will force you to have a primary 
key, it is strongly recommended that you have one for each of your tables since it 
makes it much easier to retrieve information using queries. But, usually, when 
working with databases, you can specify you want a primary key, and it gets auto-
generated, so you don't have to worry about it.
Rows
 represent a record in your database and can contain as many columns as 
needed to represent your data. 

Download 19,28 Mb.

Do'stlaringiz bilan baham:
1   ...   117   118   119   120   121   122   123   124   ...   292




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish