Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Keyword summary of query statement in MySQL data table

2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

For a sql statement, many keywords SELECT FROM JOIN WHERE GROUP BY HAVING ORDER BY LIMIT are used, which cannot be repeated with these keywords when naming. The following describes the meaning respectively.

1Direct select query statement command line

SELECT is followed by a list of comma-separated columns or asterisks (*), indicating that all columns are to be returned

2Gen from command line

FROM specifies the table or view to query the data.

3JOIN command line

Get data from other tables based on certain connection conditions.

4judgment of where condition

WHERE filters the rows in the result set.

5Graup BY grouping

Combine a set of rows into small groups and apply an aggregate function to each small packet

6HAVING command line

Filters are based on subgroups defined by the GROUP BY clause

7 order BY flashback positive order

Specifies the list of columns used for sorting

8. Limit limits the number of items.

LIMIT limits the number of rows returned

The article is from http://www.huthon.cn/.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report