Quick Search:
CODE
Oracle PL/SQL Code Library
JOBS
Find Or Post Oracle Jobs
FORUM
Oracle Discussion & Chat
 The Oracle COUNT Function      [Return To Index] Jump to:  
  Looking for the original pages? (formerly called "Morgan's Library") You can find them here.

Term: COUNT

Definition:
The Oracle COUNT function returns the number of rows returned by a query.

Example Syntax:


SELECT COUNT(sql expression)
FROM users
WHERE First_Name <> '';


For example, if you have the following table called users:

IDFirst_NameLast_Name
1MaryJones
2JohnSmith
3MikeMiller

The result for the above query will return '3'.

Related Links:

Related Code Snippets:
 
Home      :      Code Library      :      Sponsors      :      Privacy      :      Terms of Use      :      Contact Us 194 users online    © 2009 psoug.org
PSOUG LOGIN
Username: 
Password: 
Forgot your password?