Home > Database > Mysql Tutorial > body text

关于Oracle中to_number包含文字的解决办法

WBOY
Release: 2016-06-07 17:07:51
Original
1357 people have browsed it

在做历史数据导入时,有一个列表查询,没导入数据前查询正常,可是在导入数据后,就出现查询错误问题,debug调试中发现sql中有个

在做历史数据导入时,有一个列表查询,没导入数据前查询正常,可是在导入数据后,就出现查询错误问题,debug调试中发现sql中有个to_number字段时有中文情况,仔细分析下,,最终还是打算用修改sql的方式来解决以上问题,利用了Oracle中的translate函数来解决了问题,解决语句如下:

  • 这个貌似只可以用在Oracle10 及以上。

    linux

  • Related labels:
    source:php.cn
    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
    Popular Tutorials
    More>
    Latest Downloads
    More>
    Web Effects
    Website Source Code
    Website Materials
    Front End Template
    About us Disclaimer Sitemap
    php.cn:Public welfare online PHP training,Help PHP learners grow quickly!