LENGTH
LENGTH(string)

Returns the number of characters in a string.

Example

SQL> SELECT LENGTH('Dave'), LENGTH('Brighten the corner where you are.')
  2  FROM dual;

LENGTH('DAVE') LENGTH('BRIGHTENTHECORNERWHEREYOUARE.')
-------------- ---------------------------------------
             4                                      34

Get Oracle SQL: the Essential Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.