subcadena de servidor SQL
SELECT SUBSTRING('SQL Tutorial', 1, 3) AS ExtractString;
MzanziLegend
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
SELECT
SUBSTRING('SQLTutorial.org',
POSITION('.' IN 'SQLTutorial.org'));
SELECT SUBSTRING(your String here, Int Start, String length) AS OutPutString;