sql - set alias Name for Table visually -
i want set second name tables not in english letter. , when want insert table name
table record, use alias name.
i know in each query can use as
set second name, don't want way. want set property of table.
also pls tell me how can access property (alias name) in query.
i found this article, didn't found alias field
thank u
you can view:
create view easyname select * longcomplicatedtablename
so long view represents 1 table underneath, can use crud operations on view.
according msdn, naming restrictions table names follows:
the first character must 1 of following:
a letter defined unicode standard 2.0. unicode definition of letters includes latin characters through z , through z, in addition letter characters other languages.
the underscore (_), "at" sign (@), or number sign (#). symbols @ beginning of identifier have special meaning in sql server. identifier beginning "at" sign denotes local variable or parameter. identifier beginning number sign denotes temporary table or procedure. identifier beginning double number signs (##) denotes global temporary object.
some transact-sql functions have names start double @ signs (@@). avoid confusion these functions, recommended not use names start @@.subsequent characters can be:
letters defined in unicode standard 2.0.
decimal numbers either basic latin or other national scripts.
the "at" sign, dollar sign ($), number sign, or underscore.
the identifier must not transact-sql reserved word. sql server reserves both uppercase , lowercase versions of reserved words.
embedded spaces or special characters not allowed.
supplementary characters not allowed.
when used in transact-sql statements, identifiers fail comply these rules must delimited double quotation marks or brackets.
Comments
Post a Comment