SELECT SUBSTRING('SQL Tutorial', 1, 3) AS ExtractString;
-- substr(string, start, [, length ])
SELECT substr('Hello World', 1, 3) ; -- Hel
SELECT substr('Hello World', 4, 5) ; -- lo Wo
SELECT substr('Hello World', 4); -- lo World
SELECT substr('Hello World', -3); -- rld
SUBSTRING(string, start, length)
SELECT SUBSTR(first_name, 0 , 3)
From employees;
SELECT SUBSTRING(your String here, Int Start, String length) AS OutPutString;