Java处理Oracle数据库小数点前面的0丢失问题
Jun 07, 2016 pm 02:58 PM
java
oracle
lost
deal with
database
在有时候会遇到查询的数据没有问题。和Java结合就会有小问题。 当查询的数据为0.03却传递给Java为.03这样的问题。就需要修改sql解决 Java处理Oracle数据库小数点前面的0丢失问题 无 select trim(to_char(字段名(也可以是经过计算的字段的值),'99999999990.99'
在有时候会遇到查询的数据没有问题。和Java结合就会有小问题。当查询的数据为0.03 却传递给Java为.03这样的问题。就需要修改sql解决
Java处理Oracle数据库小数点前面的0丢失问题
select trim(to_char(字段名(也可以是经过计算的字段的值),'99999999990.99')) a from table
Copy after login
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot Article
How Long Does It Take To Beat Split Fiction?
3 weeks ago
By DDD
Repo: How To Revive Teammates
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌

Hot tools Tags

Hot Article
How Long Does It Take To Beat Split Fiction?
3 weeks ago
By DDD
Repo: How To Revive Teammates
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
1 weeks ago
By 尊渡假赌尊渡假赌尊渡假赌

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Break or return from Java 8 stream forEach?

Java Made Simple: A Beginner's Guide to Programming Power

Create the Future: Java Programming for Absolute Beginners
