Sql server® 2012 t-sql fundamentals


   Microsoft SQL Server 2012 T-SQL Fundamentals The



Download 10,93 Mb.
Pdf ko'rish
bet113/443
Sana26.01.2022
Hajmi10,93 Mb.
#411755
1   ...   109   110   111   112   113   114   115   116   ...   443
Bog'liq
BookSQL

70  

Microsoft SQL Server 2012 T-SQL Fundamentals



The 

STUFF

 Function

The STUFF function allows you to remove a substring from a string and insert a new substring instead.



Syntax

STUFF(string, pos, delete_length, insertstring)

This function operates on the input parameter string. It deletes as many characters as the number 

specified in the delete_length parameter, starting at the character position specified in the pos input 

parameter. The function inserts the string specified in the insertstring parameter in position pos. For 

example, the following code operates on the string ‘ xyz’, removes one character from the second 

character, and inserts the substring ‘abc’ instead.

SELECT STUFF('xyz', 2, 1, 'abc');

The output of this code is ‘xabcz’.

If you just want to insert a string and not delete anything, you can specify a length of 0 as the third 

argument.


Download 10,93 Mb.

Do'stlaringiz bilan baham:
1   ...   109   110   111   112   113   114   115   116   ...   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