+DIGITS
Under the BMC AMI Utilities implementation, the DIGITS function generates an odd number of digits by taking the next highest odd precision of its argument, if even.
The following numerics exhibit the following behaviors with +DIGITS(CDB):
- An INTEGER generates 11 digits
- A SMALLINT generates 5 digits
- A DECIMAL generates P+N digits, where P is the precision of the argument and n=0
- If p is odd or n=1 otherwise
Under the Db2 implementation or +DIGITS(IBM), numeric columns are generated as follows:
- An INTEGER generates 10 digits
- A SMALLINT generates 5 digits
- A DECIMAL generates P digits, where P is the precision of the decimal
The values are defined as follows:
IBM | (Default) Uses IBM format |
---|---|
CDB | Uses BMC AMI Utilities format |
Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*