Holen Sie sich die ersten 3 Buchstaben in SQL
SELECT FIRST_NAME , SUBSTR(FIRST_NAME, 1 , 3 ) , LENGTH(FIRST_NAME)
FROM EMPLOYEES ;
Obedient Ocelot
SELECT FIRST_NAME , SUBSTR(FIRST_NAME, 1 , 3 ) , LENGTH(FIRST_NAME)
FROM EMPLOYEES ;
-- 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