Chapter 2: Understanding Transactions and Locking What is the purpose of a transaction?


What is the difference between a function and a procedure?



Download 269,62 Kb.
Pdf ko'rish
bet11/19
Sana01.01.2022
Hajmi269,62 Kb.
#290585
1   ...   7   8   9   10   11   12   13   14   ...   19
Bog'liq
Assessment

What is the difference between a function and a procedure?

A function is part of a transaction. It can be used as part of some kind of SQL

statement. A procedure is different: It cannot be used in SELECT, INSERT, UPDATE

or DELETE statements and might span more than one transaction. A procedure is

more like a batch-job while a function is a piece of business logic used as part of a

bigger operation.

Functions cannot do advanced transaction processing while procedures got more

options in this area.



Which language is "the best one"?

This is like asking what is the best food in the world?. There are most likely more

opinions than people on this planet. In general, the best language is one that

serves a purpose well. There is no best language that fits all. While PL/Perl might

be nice to handle regular expressions PL/pgSQL might be more suitable to handle

SQL. 



Download 269,62 Kb.

Do'stlaringiz bilan baham:
1   ...   7   8   9   10   11   12   13   14   ...   19




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