Sql server® 2012 t-sql fundamentals



Download 10,93 Mb.
Pdf ko'rish
bet312/443
Sana26.01.2022
Hajmi10,93 Mb.
#411755
1   ...   308   309   310   311   312   313   314   315   ...   443
Bog'liq
BookSQL

 

CHAPTER 8

 

Data Modification



 

 267

UPDATE

 Based on a Join

Similar to the DELETE statement, the UPDATE statement is also supported by T-SQL in a nonstandard 

syntax for statements based on joins. As with DELETE statements, the join serves a filtering purpose. 

The syntax is very similar to a SELECT statement based on a join; that is, the FROM and WHERE 

clauses are the same, but instead of the SELECT clause, you specify an UPDATE clause. The UPDATE 

keyword is followed by the alias of the table that is the target of the update (you can’t update more 

than one table in the same statement), followed by the SET clause with the column assignments. 

For example, the UPDATE statement in Listing 8-1 increases the discount of all order details of 

orders placed by customer 1 by 5 percent.


Download 10,93 Mb.

Do'stlaringiz bilan baham:
1   ...   308   309   310   311   312   313   314   315   ...   443




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