Syntax of Alias Column SELECT columnName AS aliasName FROM table_name; Syntax of Alias Table SELECT columnNames FROM tableName AS aliasName;Example of aliases in SQL
SELECT name AS n, fee AS f FROM students;Let’s see one another example in which we have created two aliases. one for the name column and one for the fee column. if the alias name contains spaces, then we need to use the double quotation marks or square brackets in our query.
SELECT name AS “n b”, fee AS f FROM students;
Exercise: Download the Database of aliases in sql and practice it on your XAMPP phpMyAdmin.
How to SQL PERFORMANCE TUNING?