In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >
Share
Shulou(Shulou.com)06/01 Report--
Oracle number
NUMBER [(p [, s])]
Number having precision p and scale s. Theprecision p can range from 1 to 38. The scale s can range from-84 to 127,127. Bothprecision and scale are in decimal digits. A NUMBER value requires from 1 to 22bytes.
Scale is optional.
SQL > drop tablet_number purge
Table dropped
SQL > create tablet_number (id number (5), id1 number (5))
Table created
SQL > insert intot_number values (10000.8999999999999999999 × × 999888888888888910003)
1 row inserted
SQL > insert intot_number values (10000.899999999999999999999 × 99998888888888888999100034)
1 row inserted
SQL >-- insert intot_number values (10000.8999999999999999999 × × 99988888888888889100.003);-- error report
SQL > commit
Commit complete
SQL > select * fromt_number
ID ID1
--
10001 10.003
10001 10.003
The definition of NUMBER in Oracle:
1. When there is only one parameter, such as NUMBER (24). Indicates that the defined number can be set to a maximum of 24-bit integers.
2. When there are two parameters, such as NUMBER (38p3). Indicates that the maximum number defined is 38 digits long, including 3 decimal places. That is to say, this type can be set up to 35 integers and 3 decimal places.
3. If the decimal place exceeds the length, it will be rounded, and an error will be reported when the integer place exceeds the length.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
What is a Wait Event? During the normal functioning of a database, an Oracle process will occasional
© 2024 shulou.com SLNews company. All rights reserved.