What is the syntax format of query statements in mysql

王林
Release: 2020-06-02 15:27:58
Original
5659 people have browsed it

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]
Copy after login

Example:

Read the data table:

select * from test_tbl;
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!