Obtenez les 3 premières lettres en 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 ;
Select SUBSTRING(StudentName,1,5) as studentname from student
-- 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(names,1,5) as studentName from student