Oracle/PLSQL: To_Multi_Byte Function

Oracle/PLSQL中的`to_multi_byte`函数用于将含有单字节字符的字符串转换为多字节字符。此函数适用于数据库字符集包含单字节和多字节字符的情况。例如,查询`select to_multi_byte('Techonthenet') from dual;`将返回一个多字节字符值。
摘要由CSDN通过智能技术生成

In Oracle/PLSQL, the to_multi_byte function returns a character value with all of the single-byte characters converted to multibyte characters. To use this function, your database character set contains both single-byte and multibyte characters.

Syntax

The syntax for the to_multi_byte function is:

to_multi_byte( char )

char can be a char, varchar2, nchar, or nvarchar2 value. This function will return its result in the same character set as char.

Applies To

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

For Example

select to_multi_byte('Tech on the net')

from dual;

The SQL statement above would return a multibyte character value.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值