MySQL Tutorial

A database system used with PHP.

MySQL INNER JOIN

MySQL INNER JOIN

A JOIN clause is used to combine rows from two or more tables, based on a related column between them.

The INNER JOIN keyword selects records that have matching values in both tables.

Syntax:

SELECT column_name(s)
FROM table1
INNER JOIN table2
ON table1.column_name = table2.column_name;

Try It Yourself

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

Source Code
Result
Topics