【oracle_sql】length和lengthb的区别

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/debimeng/article/details/84670636

length和lengthb的区别

length获取字符串的字符长度

SQL> select length('新年') from dual;
LENGTH('新年')
------------
           2


lengthb获取字符串字节长度
 

SQL> select lengthb('新年') from dual;
LENGTHB('新年')
-------------
            4

猜你喜欢

转载自blog.csdn.net/debimeng/article/details/84670636