length() and lengthb()

Oracle中的length()计算字符数;

lengthb()计算字节数。

 

SQL> select length('ass中文') from dual;

LENGTH('ASS中文')
-----------------
                5

SQL> select lengthb('ass中文') from dual;

LENGTHB('ASS中文')
------------------
                 7

你可能感兴趣的:(oracle,sql)