count(column_name) vs. count(*)

0

Please login or register to vote for this query.

(click on this box to dismiss)

Illustrates the difference between counting a column that can hold null values, a 'not null' column, and count(*)

Philosophy Meta

Q&A about the site for those interested in the study of the fundamental nature of knowledge, reality, and existence

-- count(column_name) vs. count(*)
-- Illustrates the difference between counting a column
-- that can hold null values, a  'not null' column, and  count(*)

select count(Id), count(*) from Users

Enter Parameters

Options:
Switch to main site
loading Hold tight while we fetch your results