Salary AS lesson sample | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Salary AS lesson sample

Using the + 500 AS salary. Is salary a new column? or does this result in a change to the existing column? Basically, could someone screw up the database? And is there a history function where you could track changes and possible errors? Thank you...

22nd Feb 2020, 8:52 PM
task
2 Answers
+ 1
The AS keyword is used when you want to provide a custom column name at the time when your result is displayed. It is not permanent. In SQL you can make changes permanent and save them, you can undo the changes and some similar operations can be performed using Transaction Control Language (TCL).
22nd Feb 2020, 9:10 PM
Avinesh
Avinesh - avatar
0
Very clear. Thank you!
22nd Feb 2020, 10:34 PM
task