Birmingham mumbai



Download 15,21 Mb.
Pdf ko'rish
bet441/482
Sana13.01.2022
Hajmi15,21 Mb.
#355107
1   ...   437   438   439   440   441   442   443   444   ...   482
Bog'liq
Mastering Ubuntu Server Gain expertise in the art of deploying, configuring, managing, and troubleshooting Ubuntu Server by Jay LaCroix (z-lib.org)

[
 341 
]
Figure 13.3: Listing database rows from a table
To remove an entry, the following command will do what we need:
DELETE FROM Employees WHERE Name = 'Joe Smith'; 
Basically, we're using the 
DELETE FROM
 command, giving the name of the table we 
wish to delete from (
Employees
, in this case), and then using 
WHERE
 to provide some 
search criteria for narrowing down our command.
The 
DROP
 command allows us to delete tables or entire databases, and it should be 
used with care. I don't actually recommend you delete the database we just created, 
since we'll use it for additional examples. But if you really wanted to drop the 
Employees
 table, you could use:
DROP TABLE Employees; 
Or use this to drop the entire database:
DROP DATABASE mysampledb; 
There is, of course, much more to MariaDB and its MySQL syntax than the samples 
I have provided, but this should be enough to get you through the examples in this 
book. As much as I would love to give you a full walkthrough of the MySQL syntax, 
it would easily push this chapter beyond a reasonable number of pages. If you'd 
like to push your skills beyond the samples of this chapter, there are great books 
available that are dedicated to the subject.


Managing Databases

Download 15,21 Mb.

Do'stlaringiz bilan baham:
1   ...   437   438   439   440   441   442   443   444   ...   482




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