LEN

From SQLZOO
Revision as of 10:29, 16 July 2012 by Connor (Talk | contribs) (Created page with "<table align='right' border='1'> <caption>Compatibility</caption> <tr><th colspan='3'>LEN</th></tr> <tr><td align='center'>'''Engine'''</td><td align='center'>'''OK'''</td><td...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
Compatibility
LEN
EngineOKAlternative
ingresNoLENGTH(S)
mysqlNoLENGTH(S)
oracleNoLENGTH(S)
postgresNoLENGTH(S)
sqlserverYesLEN(s)

LENGTH

LEN(s) returns the number of characters in string s.

    LEN('Hello') -> 5  
SELECT LEN(name), name
  FROM bbc
SELECT LENGTH(name), name
  FROM bbc

See also