Can you create an alias on field at time of creation? Example
CREATE TABLE MYTABLE (
VERY_LONG_NAME AS VLN INT NOT NULL )
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No.
Why create a table with a
VERY_LONG_NAMEand then alias it? Simply chooseA_BETTER_NAMEto begin with.In addition, it would be quite confusing to have a DB where columns are accessible by multiple names. How would you know which name was the actual name and which was the aliased name?
EDIT
As per @DavidFabers suggestion, if you must name your column
VERY_LONG_NAME, you could create a view to allow you/users to access the column by a shorter name: