sql string length
snippet in sql

sql string length

user4027

-- Relevant for SQL-Oracle only

-- syntax
LENGTH(<your-string>)

-- example
LENGTH('CountCharacters') -- OUTPUT: 15
        123456789012345

-- example with query 
SELECT 'CountCharacters',LENGTH('CountCharacters')
FROM DUAL;

-- OUTPUT: CountCharacters, 15

sql length

user5007

-- Relevant for MS SQL (SQL Server)
LEN('string')