当前位置:网站首页>Kingbasees SQL language reference manual of Jincang database (3.1.1.3. currency type)
Kingbasees SQL language reference manual of Jincang database (3.1.1.3. currency type)
2022-07-26 23:13:00 【Thousands of sails passed by the side of the sunken boat_】
3.1.1.3. Type of currency
grammar :MONEY
MONEY Type stores currency values with fixed decimal precision . The precision of decimals is determined by the lc_monetary Setting up decisions .
Value range :-92233720368547758.08 To +92233720368547758.07.8 Byte storage . MONEY And numeric types can be converted to each other .numeric、int and bigint Values of data types can be converted to MONEY. But floating point numbers are not recommended for dealing with currencies , Because floating point numbers may have rounding errors .
example :
SELECT '12.34'::float8::numeric::money; SELECT '52093.89'::money::numeric::float
边栏推荐
- How can enterprises mitigate the security risks of Internet of things and industrial Internet of things
- PostgreSQL 与 Navicat:数据库行业的中坚力量
- 2022-07-26: what is the output of the following go language code? A:5; B:hello; C: Compilation error; D: Running error. package main import ( “fmt“ )
- 面试:你印象最深的BUG,举个例子
- 研究阿尔茨海默病最经典的Nature论文涉嫌造假
- Network and VPC hands-on experiment
- 证监会:同意传音控股科创板IPO注册
- With a total investment of 10billion US dollars, Huahong Wuxi 12 inch wafer factory was officially put into operation
- Promote the replacement of X86 with arm server chips, and Huawei and Feiteng carry the banner of localization!
- Day07 MySQL knowledge points re summary and multi table query
猜你喜欢
![[postgresql]postgresqlg使用enerate_series() 函数补全统计](/img/62/893986eb97a61f4e9ef32abc8d2a90.png)
[postgresql]postgresqlg使用enerate_series() 函数补全统计

The JSON string is converted into a JSON object, the value of a key is obtained, and whether a key exists is judged

实战项目:Boost搜索引擎

Basic use of gateway

sql多表查询的练习
![[untitled]](/img/88/68952146da17a4a504ee7d1bc8858d.png)
[untitled]

Eureka basic use

Introduction to Nacos as a registry and configuration center - realize remote call, dynamically obtain configuration files and database configuration information

Incremental secure file system SFS based on C language design

gateway基本使用
随机推荐
推动ARM服务器芯片替代X86,华为、飞腾扛起国产化大旗!
Counter attack dark horse: devdbops training, give you the best courses!
面试:你印象最深的BUG,举个例子
由若干QWidget实现日历文档
Basic use of gateway
MySQL 数据的导入
CSRC: agree to the IPO registration of Chuanyin holding science and Technology Innovation Board
TypeScript阶段学习
[postgresql]postgresqlg use generate_ Series() function completes statistics
菜鸟网络面试【杭州多测师】【杭州多测师_王sir】
What if redis memory is full? This is the right way to deal with it
New employees of black maredge takeout
Practical project: boost search engine
面试官问:JS的this指向
Incremental secure file system SFS based on C language design
[postgresql]postgresqlg使用enerate_series() 函数补全统计
ZTE: more than 50000 5g base stations have been shipped worldwide!
SQL multi table query exercise
PostgreSQL 与 Navicat:数据库行业的中坚力量
Apifox--比 Postman 还好用的 API 测试工具