Oracle ascii函數

來源:互聯網
上載者:User

Oracle ascii函數

一  簡介

Oracle ascii函數用於返回單個字元的數字代號。

二  文法

ASCII( single_character )    參數說明: 代表只能輸入單個字元,如果輸入多個,oracle只會返回第一個字元的數字代號。

三  使用環境

oracle 12c, 11g, 10g, 9i, 8i

四  例子

HR@orcl> select ascii('ab') from dual;

ASCII('AB')
-----------
        97

HR@orcl> select ascii('a') from dual;

ASCII('A')
----------
        97

相關文章

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.