Database Administration (MOSC)

MOSC Banner

Difference between count(1) and count(*) in sql

edited Apr 3, 2012 1:30AM in Database Administration (MOSC) 4 commentsAnswered
 Team,

OS = Linux As 4
DB = 10.2.0.5.0


Could you please tell me the exact difference between below statement in terms of performance ? 


SQL> select count(1) from NUR;

  COUNT(1)
----------
 272242796

SQL> select count(*) from NUR;

  COUNT(*)
----------
 272242796

SQL> select count(0) from NUR;

  COUNT(0)
----------
 272242796

Thanks,
Harry

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center