MySQL Tutorial

A database system used with PHP.

MySQL Aliases

MySQL Aliases

Aliases are used to give a table, or a column in a table, a temporary name.

Aliases are often used to make column names more readable.

An alias only exists for the duration of that query.

Alias Column Syntax:

SELECT column_name AS alias_name
FROM table_name;

Try It Yourself

Edit the code below and click Run to see the result live.

Source Code
Result
Topics