Sql server® 2012 t-sql fundamentals



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

Quoted Identifiers

In standard SQL, single quotes are used to delimit literal character strings (for example, ‘literal’

and double quotes are used to delimit irregular identifiers such as table or column names that 

include a space or start with a digit (for example, “Irregular Identifier”). In SQL Server, there’s 

a setting called QUOTED_IDENTIFIER that controls the meaning of double quotes. You can 

apply this setting either at the database level by using the ALTER DATABASE command or at 

the session level by using the SET command. When the setting is turned on, the behavior is ac-

cording to standard SQL, meaning that double quotes are used to delimit identifiers. When the 

setting is turned off, the behavior is nonstandard, and double quotes are used to delimit literal 

character strings. It is strongly recommended that you follow best practices and use standard 

behavior (with the setting on). Most database interfaces, including OLEDB and ODBC, turn this 

setting on by default.



Tip

  As an alternative to using double quotes to delimit identifiers, SQL Server 

also supports square brackets (for example, [Irregular Identifier]).

Regarding single quotes that are used to delimit literal character strings, if you want to in-

corporate a single quote character as part of the string, you need to specify two single quotes. 

For example, to express the literal abc’de, specify ‘ abc’ ‘de ‘.




Download 10,93 Mb.

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