MySQL introduction by Antun Peicevic
Author:Antun Peicevic [Peicevic, Antun]
Language: eng
Format: epub, pdf
Publisher: Geek University Press
Published: 2016-03-09T23:00:00+00:00
Advanced SELECT statements
We can use many different clauses to change the behaviour of the SELECT statement. In this chapter we will describe and give examples of some common ones.
Display the number of rows in the table
We can use the COUNT() function to return the number of rows that matches a specified criteria. For example, to display the number of all rows in a table, we can use the following command:
mysql> SELECT * FROM testtb;
+------+-------------+------+
| name | surname | year |
+------+-------------+------+
| Amy | Goodridge | 1991 |
| Mark | Smith | 1955 |
| John | von Neumann | 1921 |
| John | Jones | 1985 |
+------+-------------+------+
4 rows in set (0.00 sec)
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Deep Learning with Python by François Chollet(15329)
The Mikado Method by Ola Ellnestam Daniel Brolund(12597)
Hello! Python by Anthony Briggs(12459)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(11767)
Dependency Injection in .NET by Mark Seemann(11572)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10533)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(10381)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(10077)
Grails in Action by Glen Smith Peter Ledbrook(9705)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(9358)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(9183)
Hit Refresh by Satya Nadella(9040)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(8508)
The Kubernetes Operator Framework Book by Michael Dame(8479)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8301)
Robo-Advisor with Python by Aki Ranin(8256)
Practical Computer Architecture with Python and ARM by Alan Clements(8228)
Implementing Enterprise Observability for Success by Manisha Agrawal and Karun Krishnannair(8199)
Building Low Latency Applications with C++ by Sourav Ghosh(8103)