当前位置:网站首页>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也报错,感谢回复
边栏推荐
- 2021-03-25
- On cursor in MySQL
- 个人常用软件及浏览器插件分享
- ERROR 1215 (HY000): Cannot add foreign key constraint
- Scripy web crawler series tutorials (I) | construction of scripy crawler framework development environment
- What is sentinel produced by Ali?
- Transfer Learning
- jenkins-用户权限管理
- How exactly does instanceof judge the reference data type!
- Handwritten a message queue in two ways
猜你喜欢

PHP laravel8 send email

Shandong University machine learning final 2021

Graphsage paper reading

The nearest common ancestor of 235 binary search tree

Shandong University machine learning experiment VI k-means

Eureka cluster setup

Résoudre le problème de la durée inexacte du fichier audio AAC obtenu par ffmpeg

学好C语言从关键字开始

FPGA interview topic notes (I) - FPGA development process, metastable state and competitive risk, build and hold time, asynchronous FIFO depth, etc

563. slope of binary tree
随机推荐
verilog实现双目摄像头图像数据采集并modelsim仿真,最终matlab进行图像显示
FPGA面試題目筆記(四)—— 序列檢測器、跨時鐘域中的格雷碼、乒乓操作、降低靜動態損耗、定點化無損誤差、恢複時間和移除時間
fatal: refusing to merge unrelated histories
C language war "minesweeping"
个人常用软件及浏览器插件分享
关于parseInt()
Moment time plug-in tips -js (super detailed)
QT socket setting connection timeout
C语言大战“扫雷”
Why don't we have our own programming language?
Lazy load
538.把二叉搜索树转换成累加树
EasyGBS接入的设备视频直播突然全部无法播放是为什么?数据库读写不够
Docker installation of MySQL and redis
使用Meshlab对CAD模型采样点云,并在PCL中显示
Topic collection of FIFO minimum depth calculation
Quantitative understanding (Quantitative deep revolutionary networks for effective information: a whitepaper)
Eureka cluster setup
解决ffmpeg獲取AAC音頻文件duration不准
538. convert binary search tree to cumulative tree