Section: Aggregation and Grouping
Count rows
sql
sql
SELECT COUNT(*) AS row_count
FROM users;Explanation
COUNT(*) includes rows regardless of NULL values.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Aggregation and Grouping