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

The method of data query by mysql

2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)05/31 Report--

This article mainly introduces mysql data query method, the text is very detailed, has a certain reference value, interested friends must read!

First we create a data table students, this operation is based on this data table, this data table data is as follows:

query record

select distinguish field 1, field 2 from table name;

Of which:

Field: refers to the field to be queried, such as id or age in the data table;

Table name: is the data table we operate on, such as my operation is the table students;

As long as there is a difference between field 1 and field 2, any field will be selected, generally used for distinct, only one field will be filtered;

At the same time, this statement can also be used to query under certain conditions. Conditional query comparison symbols: =,,>=,

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