without using count(*) and rownum how can we count total
record in a table
Answers were Sorted based on User's Feedback
simple..!!! Findout the primary key of the table..
then..
select count(primary_key_column) from table;
thats all; becos count vil work with non-null values.
primary key cant b null..
so.. v can use count on primary key...
| Is This Answer Correct ? | 13 Yes | 1 No |
Answer / rajesh
SQL> SELECT TABLE_NAME, NUM_ROWS FROM USER_TABLES WHERE TABLE_NAME='EMP';
TABLE_NAME NUM_ROWS
------------------------------ ----------
EMP 14
| Is This Answer Correct ? | 3 Yes | 0 No |
Why does Oracle not permit the use of PCTUSED with indexes?
How to shutdown your 10g xe server?
what is a cartition product?
How many types of auditing in Oracle?
What will be the syntax to find current date and time in format "yyyy-mm-dd"?
Can we commit inside a function in oracle?
What are dml statements in oracle?
which is best insttute for teradata,sybase,mysql,oracle in hyderabad
Q1:code to connect to sql server(database) through jdbc application. Q2:code to connect to Mysql(database) through jdbc application. Q3:code to connect to oracle(database) through jdbc application.
How do I limit the number of oracle database connections generated by weblogic server?
What is a Data File ?
Can we create more than one constraint to column ?