Difference between revisions of "Select count"

From wikieduonline
Jump to navigation Jump to search
(Created page with " * <code>select count(*) from pg_stat_activity where query like 'autovacuum:%';</code> == See also == * {{SQL}}")
 
 
(5 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
+
{{lowercase}}
 
+
The <code>COUNT(*)</code> function returns the number of rows returned by a <code>SELECT</code> statement, including <code>NULL</code> and duplicates.
  
  
Line 6: Line 6:
 
* <code>[[select count]](*) from [[pg_stat_activity]] where query like '[[autovacuum]]:%';</code>
 
* <code>[[select count]](*) from [[pg_stat_activity]] where query like '[[autovacuum]]:%';</code>
  
 
+
== Related terms ==
 +
* <code>[[Pg stat activity]]</code>
 +
* <code>[[select distinct]]</code>
  
 
== See also ==
 
== See also ==
 
* {{SQL}}
 
* {{SQL}}
 +
 +
 +
[[Category:SQL]]

Latest revision as of 13:47, 8 November 2022

The COUNT(*) function returns the number of rows returned by a SELECT statement, including NULL and duplicates.


Related terms[edit]

See also[edit]

Advertising: