MySQL Tutorial

A database system used with PHP.

MySQL SELECT

The MySQL SELECT Statement

The SELECT statement is used to select data from a database.

The data returned is stored in a result table, called the result-set.

Syntax:

SELECT column1, column2, ...
FROM table_name;

To select all available columns, use the asterisk (*) syntax:

SELECT * FROM table_name;

Try It Yourself

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

Source Code
Result
Topics