Loading lesson path
Concept visual
Start at both ends
Return the number of products in the "Products" table:
SELECT COUNT(ProductID) AS NumberOfProducts FROM Products;The COUNT() function returns the number of records returned by a select query.
NULL values are not counted.
expression )
Required. A field or a string value
From MySQL 4.0
❮ MySQL Functions