Answers for "mssql string length"

SQL
2

mssql string length

SELECT length('abcd') FROM DUAL;		-- Oracle
SELECT length('abcd');					-- MySql
SELECT len('abcd');						-- SQL Server
Posted by: Guest on July-03-2021
1

sql string length

-- 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
Posted by: Guest on May-13-2020

Code answers related to "SQL"

Browse Popular Code Answers by Language