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

How to design efficient and reasonable MySQl query statements? Summary of 23 commonly used types

2025-01-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

MySQL is a very thorny problem for many Linux practitioners, most of which are due to the lack of clarity on how to deal with the problems in the database. Before optimizing MySQL, we must understand the query process of MySQL. A lot of query optimization work actually follows some principles to make the optimizer of MySQL run in the expected and reasonable way. Do you really know what MySQL is?

1. What is a database?

Database (Database) is a warehouse that organizes, stores and manages data according to data structure. with the development of information technology and market, data management is no longer just storing and managing data, but has been transformed into a variety of data management methods needed by users. There are many types of databases, from the simplest tables that store all kinds of data to large database systems that can store massive data.

The mainstream databases are: sqlserver,mysql,Oracle, SQLite, Access, MS SQL Server and so on. I mainly talk about mysql.

2. What is database management for?

a. Save data to a file or memory

b. Receive specific commands, and then take appropriate actions on the file

3. Common query statements in MySQL

1. Query numeric data

SELECT * FROM tb_name WHERE sum > 100

Query predicate: >, =,!, =

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

Servers

Wechat

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

12
Report