91-9990449935 0120-4256464 |
MySQL FROM ClauseThe MySQL FROM Clause is used to select some records from a table. It can also be used to retrieve records from multiple tables using JOIN condition. Syntax: Parameterstable1 and table2: specify tables used in the MySQL statement. The two tables are joined based on table1.column1 = table2.column1. Note:
MySQL FROM Clause: Retrieve data from one tableThe following query specifies how to retrieve data from a single table. Use the following Query: MySQL FROM Clause: Retrieve data from two tables with inner joinLet's take an example to retrieve data from two tables using INNER JOIN. Here, we have two tables "officers" and "students". Execute the following query: MySQL FROM Clause: Retrieve data from two tables using outer joinExecute the following query:
Next TopicMySQL ORDER BY Clause
|