01 May,2015 by Tom Collins
Question: How is the function COUNT_BIG() used and what is the difference with COUNT()?
Answer: Both COUNT(*) and COUNT_BIG(*) return total number of rows in a table where the value of the column is NOT NULL.
The difference is COUNT(*) returns INT datatype and COUNT_BIG(* ) uses the bigint datatype
When to use COUNT_BIG? If you think the result count is greater than the maximum value of integer
DB2 enforcing business rules on data - DBA DB2 - DBA-DB2.com
This is only a preview. Your comment has not yet been posted.
As a final step before posting your comment, enter the letters and numbers you see in the image below. This prevents automated programs from posting comments.
Having trouble reading this image? View an alternate.
Posted by: |