In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)05/31 Report--
This article will explain in detail how many pieces of data there are in the statistical table of mysql. The editor thinks it is very practical, so I share it for you as a reference. I hope you can get something after reading this article.
In mysql, you can use the "select" statement and the count () function to count the total number of record rows contained in the table, and the syntax "select count (*) from data table name;".
The operating environment of this tutorial: windows10 system, mysql8 version, Dell G3 computer.
There is a Carsys database on the hard disk, and there is a Brand table in the database. Now you need to query how many records are in the Brand table.
From the following figure, you can see that the Carsys database has a Brand table with four fields, each of which is ID,DeviceNo,BrandId,BrandName.
The operation process is described in detail below.
1. Execute MySQL 8.0 Command Line Client
2. Enter the password
3. Enter use carsys
4. Enter select count (*) from Brand
Description:
The MySQL COUNT () function counts the total number of record rows contained in the data table, or returns the number of data rows in the column based on the query results, using the following two methods:
COUNT (*) calculates the total number of rows in the table, regardless of whether a column has a numeric value or is null.
COUNT (field name) calculates the total number of rows under the specified column, ignoring rows with null values.
This is the end of the article on "how to count the number of data in the mysql table". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.