- 1.
- I used to think that Integer=number (38,0)--38 is the maximum precision of number
- Integer is a very large data type and can be represented as power (10,126)-1
- Because the maximum of one byte represents 256, the largest of n bytes represents power (256,n) >=power (10,126)
- n=53, an integer type uses a minimum of 53 bytes.
- So the integer type is still as small as possible, generally rarely use such a large number. In particular, some people deal with the Boolean type;
- Because Oracle does not have a Boolean type in its table structure, many people simply replace the Boolean type with an integer, which feels a bit "extravagant". Generally, char (1) is used to denote a Boolean type;' 0 ' means false, ' 1 ' indicates true
- 2.
- VB in the ToString method home DBNull converted into an empty string.
- Can not speak DBNull converted to string method, Custom function:
- public static string Getdbstring (Object obj) {
- if (! ( obj is DBNull)) {
- return (string) obj;
- }
- else {
- return string. Empty;
- }
- }
ASM 10g & 11g Upgrade downgrade test