Home  >  Article  >  Database  >  Oracle ascii函数

Oracle ascii函数

WBOY
WBOYOriginal
2016-06-07 15:21:331390browse

Oracle ascii函数用于返回单个字符的数字代号。ASCII( single_character ) 参数说明: 代表只能输入单个字符,如果输入多个,

一  简介

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

本文永久更新链接地址

Statement:
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