select as mysql code example

Example 1: alias mysql

SELECT coluna
AS alias_coluna
FROM tabela AS alias_tabela;

Example 2: select mysql

SELECT column_name(s) FROM table_name

Example 3: sql as

SELECT CustomerID AS ID, CustomerName AS Customer

Example 4: MySQL SELECT

SELECT select_list
FROM table_name;

Example 5: select query in mysql

SELECT * FROM `table_name`;
SELECT `col1`,`col2` FROM `table_name`;
SELECT `col1 as name`,`col2 as email` FROM `table_name`;
SELECT * FROM `table_name` WHERE id = '1';

Tags:

Php Example