当前位置:网站首页>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也报错,感谢回复
边栏推荐
- Simple knapsack problem
- Quantitative understanding (Quantitative deep revolutionary networks for effective information: a whitepaper)
- Ethical discussion on reptile Technology
- Jenkins different styles of project construction
- What is sentinel produced by Ali?
- Training and testing of super score model in mmediting
- []==! []
- 021-MongoDB数据库从入门到放弃
- 不同VLAN间的通信
- 572. 另一个树的子树
猜你喜欢

Jenkins different styles of project construction

EasyGBS接入的设备视频直播突然全部无法播放是为什么?数据库读写不够

autojs,读取一行删除一行,停止自己外的脚本

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

Convert multiple pictures into one NPY file storage

Analyze the principle of configuration center from the perspective of Nacos client

FPGA设计中提高工作频率及降低功耗题目合集

FPGA面试题目笔记(四)—— 序列检测器、跨时钟域中的格雷码、乒乓操作、降低静动态损耗、定点化无损误差、恢复时间和移除时间

Shandong University machine learning final 2021

关于SIoU的原理和代码实现(回顾IoU、GIoU、DIoU、CIoU)
随机推荐
jenkins-用户权限管理
About the principle and code implementation of Siou (review IOU, giou, Diou, CIO)
235-二叉搜索树的最近公共祖先
Ethical discussion on reptile Technology
FPGA设计中提高工作频率及降低功耗题目合集
A multi classification model suitable for discrete value classification -- softmax regression
fatal: refusing to merge unrelated histories
Shandong University machine learning final 2021
Handwritten promise [01] - Implementation of promise class core logic
UEFI finding PCI devices
Jenkins different styles of project construction
End of 2021 graphics of Shandong University
Sharing of personal common software and browser plug-ins
A piece of code has been refactored six times by the boss, and my mind is broken
UEFI查找PCI设备
PHP processing tree and infinite processing
How to arrange the dataframe from small to large according to the absolute value of a column?
Shandong University machine learning experiment 5 SVM
Fix the problem that the right mouse button does not have a vscode shortcut
617. 合并二叉树