当前位置:网站首页>Oracle提示无效数字
Oracle提示无效数字
2022-06-11 06:35:00 【CSDN问答】
各位好,我想问个问题:Oracle从varchar2插入到number(8,3)数据,就是之前都能插入,这次因为数据里面有一个负数(-1697.8)了,最后就开始报无效数字的错误,于是想用to_number函数去转换成数值型,但是转完的数据小数点也被替换了,是这里的正则式写错了吗,能怎么改吗,因为数据没办法修改,
to_number(regexp_replace('-1699.8',[^0-9],'')),
像这样小数点就被转换为空了,数据最后变成了-16998了,如果想要保留小数点的话,正则式该怎么写呢,因为不用替换函数,直接用to_number也报错,感谢回复
边栏推荐
- 关于SIoU的原理和代码实现(回顾IoU、GIoU、DIoU、CIoU)
- A multi classification model suitable for discrete value classification -- softmax regression
- 不同VLAN间的通信
- 关于parseInt()
- Handwriting promise [02] - asynchronous logic implementation
- A piece of code has been refactored six times by the boss, and my mind is broken
- Sharing of personal common software and browser plug-ins
- Teach everyone how to implement an electronic signature
- FPGA设计——乒乓操作实现与modelsim仿真
- Analyze the principle of configuration center from the perspective of Nacos client
猜你喜欢

538.把二叉搜索树转换成累加树

563. slope of binary tree

Eureka集群搭建

UEFI查找PCI设备

Zvuldrill installation and customs clearance tutorial

Convert multiple pictures into one NPY file storage

NPM upgrade: unable to load file c:\users\administrator\appdata\roaming\npm\npm-upgrade ps1

Shandong University machine learning final 2021

FPGA interview notes (II) -- synchronous asynchronous D flip-flop, static and dynamic timing analysis, frequency division design, retiming

解决ffmpeg獲取AAC音頻文件duration不准
随机推荐
Learn C language well from keywords
CCS method of installing compiler
Vulnhub's breach1.0 range exercise
FPGA设计中提高工作频率及降低功耗题目合集
Transfer Learning
jenkins-不同风格的项目构建
617. merge binary tree
Convert text label of dataset to digital label
Handwriting promise [03] - realize multiple calls and chain calls of then method
FPGA面試題目筆記(四)—— 序列檢測器、跨時鐘域中的格雷碼、乒乓操作、降低靜動態損耗、定點化無損誤差、恢複時間和移除時間
Analyze the principle of configuration center from the perspective of Nacos client
NPM upgrade: unable to load file c:\users\administrator\appdata\roaming\npm\npm-upgrade ps1
Notes sur les questions d'entrevue de la FPGA (IV) - - détecteur de séquence, Code gris dans le domaine de l'horloge croisée, opération de ping - pong, réduction de la perte statique et dynamique, err
About parseint()
MongoDB安装
Who is stronger, zip or 7-Zip, and how to choose?
ijkPlayer中的错误码
不同VLAN间的通信
FPGA设计——乒乓操作实现与modelsim仿真
The difference between call and apply and bind