当前位置:网站首页>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
边栏推荐
- [hcip] OSPF external route introduction
- 中兴通讯:5G基站在全球发货已超过5万个!
- [untitled]
- 【flask高级】结合源码分析flask中的线程隔离机制
- With a total investment of 10billion US dollars, Huahong Wuxi 12 inch wafer factory was officially put into operation
- Arduino experiment I: two color lamp experiment
- Huawei atlas900 reveals the secret: it integrates thousands of shengteng 910 chips, and its computing power is comparable to 500000 PCs!
- Promote the replacement of X86 with arm server chips, and Huawei and Feiteng carry the banner of localization!
- Xinding acquires Ziguang holdings! Wanye enterprise: comprehensive transformation of integrated circuits!
- 2019 biometric forum successfully ended: these ten highlights should not be missed!
猜你喜欢
随机推荐
HCIA-R&S自用笔记(19)VLAN配置及实验、VLAN间路由
面试官问:JS的this指向
[flask advanced] analyze the thread isolation mechanism in flask in combination with the source code
蔚来杯2022牛客暑期多校训练营2
How to recover the original data when the U disk is damaged, and how to recover the damaged data when the U disk is damaged
Customer case | student education relies on observation cloud to create a new ecosystem of observable Smart Education
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“ )
[hcip] OSPF special area, summary, certification
利用Go制作微信机器人(一)发送消息
【HCIP】OSPF 关系建立
比海豹便宜,造型炸裂空间大,20万左右真没对手?长安全新“王炸”这样选才划算
Why am I still writing articles on CSDN? A journey of accompanying learning.
基于C语言的页式文件系统
基于信心上界蒙特卡洛搜索树(UCT)实现四子棋
Apifox -- a better API testing tool than postman
程序员成长第二十九篇:如何激励员工?
Monte Carlo search tree (UCT) based on confidence upper bound to realize four sub chess
Introduction to Nacos as a registry and configuration center - realize remote call, dynamically obtain configuration files and database configuration information
Weilai cup 2022 Niuke summer multi school training camp 2
【无标题】








