Difference between revisions of "Select count"
Jump to navigation
Jump to search
(Created page with " * <code>select count(*) from pg_stat_activity where query like 'autovacuum:%';</code> == See also == * {{SQL}}") |
|||
Line 1: | Line 1: | ||
− | + | The <code>COUNT(*)</code> function returns the number of rows returned by a <code>SELECT</code> statement, including NULL and duplicates. | |
Revision as of 19:18, 5 August 2021
The COUNT(*)
function returns the number of rows returned by a SELECT
statement, including NULL and duplicates.
select count(*) from pg_stat_activity where query like 'autovacuum:%';
See also
- SQL, NewSQL, RDMS: GraphQL (2015), SQLite,
select, insert
,select count
, Distributed SQL, TablePlus, Cache hit ratio,pg_stat_user_tables
,EXPLAIN
, Index (PostgreSQL), DDL, SQL/MED, Group by, List users, SQL Injection, SQLAlchemy,CREATE USER, CREATE ROLE, EXPLAIN, ALTER DATABASE, REVOKE, NOLOCK, NOWAIT, EXISTS
, Unique constraint,.sql
Advertising: