Sql server® 2012 t-sql fundamentals


Delimiting Identifier Names



Download 10,93 Mb.
Pdf ko'rish
bet74/443
Sana26.01.2022
Hajmi10,93 Mb.
#411755
1   ...   70   71   72   73   74   75   76   77   ...   443
Bog'liq
BookSQL

Delimiting Identifier Names

As long as the identifiers in your query comply with rules for the format of regular identifiers

you don’t need to delimit the identifier names used for schemas, tables, and columns. The rules 

for the format of regular identifiers can be found in SQL Server Books Online at the follow-

ing URL: http://msdn.microsoft.com/en-us/library/ms175874. If an identifier is irregular—for 

example, if it has embedded spaces or special characters, starts with a digit, or is a reserved 

keyword—you have to delimit it. You can delimit identifiers in SQL Server in a couple of ways. 

The standard SQL form is to use double quotes—for example, “Order Details”. The form specific 

to SQL Server is to use square brackets—for example, [Order Details], but SQL Server also sup-

ports the standard form. 

With identifiers that do comply with the rules for the format of regular identifiers, delimit-

ing is optional. For example, a table called OrderDetails residing in the Sales schema can be 

referred to as Sales.OrderDetails or “Sales”.”OrderDetails” or [Sales].[OrderDetails]. My personal 

preference is not to use delimiters when they are not required, because they tend to clutter the 

code. Also, when you’re in charge of assigning identifiers, I recommend always using regular 

ones, for example, OrderDetails instead of Order Details

www.it-ebooks.info




Download 10,93 Mb.

Do'stlaringiz bilan baham:
1   ...   70   71   72   73   74   75   76   77   ...   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