Home  >  Article  >  Database  >  What is the syntax format of query statements in mysql

What is the syntax format of query statements in mysql

王林
王林Original
2020-06-02 15:27:585669browse

What is the syntax format of query statements in mysql

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn