What is the use of as keyword in SQL?
In SQL, as keyword can be used for changing the column name in the result set.
In SQL, as keyword can be used for alias naming.
Both first and second options are valid.
In sql we can use as keyword for changing column names in result set as shown below .
Ex1: select fname as 'firstname' from employees ;
The above query given the following table output .
Back To Top