Collections:
Count the Number of Rows with SELECT Statements in Oracle
How To Use SELECT Statement to Count the Number of Rows in Oracle?
✍: FYIcenter.com
If you want to count the number of rows, you can use the COUNT(*) function in the SELECT clause. The following select statement returns the number of rows in the "department" table:
SQL> SELECT COUNT(*) FROM departments;
COUNT(*)
----------
27
So there are 27 rows in the "departments" table.
⇒ Use of SELECT Statements in Views in Oracle
⇐ Sort Query Output in Descending Order in Oracle
2019-12-19, 3280🔥, 0💬
Popular Posts:
What is dba.FYIcenter.com Website about? dba.FYIcenter.com is a Website for DBAs (database administr...
How To Select All Columns of All Rows from a Table in Oracle? The simplest query statement is the on...
How To Query Tables and Loop through the Returning Rows in MySQL? The best way to query tables and l...
What Is Program Global Area (PGA) in Oracle? A Program Global Area (PGA) is a memory buffer that is ...
How To List All User Names in a Database in SQL Server? If you want to see a list of all user names ...