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:

  1. 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 @@.

  2. 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.

  3. the identifier must not transact-sql reserved word. sql server reserves both uppercase , lowercase versions of reserved words.

  4. embedded spaces or special characters not allowed.

  5. supplementary characters not allowed.

when used in transact-sql statements, identifiers fail comply these rules must delimited double quotation marks or brackets.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -