Sql server® 2012 t-sql fundamentals



Download 10,93 Mb.
Pdf ko'rish
bet106/443
Sana26.01.2022
Hajmi10,93 Mb.
#411755
1   ...   102   103   104   105   106   107   108   109   ...   443
Bog'liq
BookSQL

Operators and Functions

This section covers string concatenation and functions that operate on character strings. For 

string concatenation, T-SQL provides the + operator and the CONCAT function. For other opera-

tions on character strings, T-SQL provides several functions, including SUBSTRINGLEFTRIGHT



LENDATALENGTHCHARINDEXPATINDEXREPLACEREPLICATESTUFFUPPERLOWERRTRIM

LTRIM, and FORMAT. In the following sections, I describe these commonly used operators and 

functions.



String Concatenation (plus Sign [+] Operator and 

CONCAT

 Function)

T-SQL provides the plus sign (+) operator and the CONCAT function (in SQL Server 2012) to concat-

enate strings. For example, the following query against the Employees table produces the fullname 

result column by concatenating firstname, a space, and lastname.

SELECT empid, firstname + N' ' + lastname AS fullname 

FROM HR.Employees;

www.it-ebooks.info




Download 10,93 Mb.

Do'stlaringiz bilan baham:
1   ...   102   103   104   105   106   107   108   109   ...   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