Oracle/PLSQL: Compose Function

"Oracle/PLSQL中的compose函数用于返回一个Unicode字符串。该函数接受如char、varchar2、nchar等类型作为输入,结合特定的Unicode值(如'300'对应重音符)来构造Unicode字符串。例如,compose('o'||unistr('308'))将返回'ö'。此功能适用于Oracle11g、Oracle10g和Oracle9i。"
摘要由CSDN通过智能技术生成

In Oracle/PLSQL, the compose function returns a Unicode string.

Syntax

The syntax for the compose function is:

compose( string )

string is the input value used to create the Unicode string. It can be a char, varchar2, nchar, nvarchar2, clob, or nclob.

Note

Below is a listing of unistring values that can be combined with other characters in the compose function.

Unistring Value

Resulting character

unistr('\0300')

grave accent ( ` )

unistr('\0301')

acute accent ( ´ )

unistr('\0302')

circumflex ( ^ )

unistr('\0303')

tilde ( ~ )

unistr('\0308')

umlaut ( ¨ )

Applies To

  • Oracle 11g, Oracle 10g, Oracle 9i

For Example

compose('o' || unistr('\0308') )

would return ö

compose('a' || unistr('\0302') )

would return â

compose('e' || unistr('\0301') )

would return é

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值