Mysql database uses the SELECT statement to query data.
Common syntax format:
SELECT column_name,column_name FROM table_name [WHERE Clause] [LIMIT N][ OFFSET M]
Example:
Read the data table:
select * from test_tbl;
This example will return all records of the data table test_tbl.
Recommended tutorial: mysql tutorial
The above is the detailed content of What is the syntax format of query statements in mysql. For more information, please follow other related articles on the PHP Chinese website!