Renaming Columns
The AS
clause allows for columns to be aliased or renamed in a query.
Syntax
SELECT <column> AS <alias> FROM <table>;
Example
SELECT name AS Company FROM Companies;
Company |
---|
Walmart |
Disney |
PayPal |
Blackberry |
The AS
clause allows for columns to be aliased or renamed in a query.
SELECT <column> AS <alias> FROM <table>;
SELECT name AS Company FROM Companies;
Company |
---|
Walmart |
Disney |
PayPal |
Blackberry |