SELECT FIRST_NAME , SUBSTR(FIRST_NAME, 1 , 3 ) , LENGTH(FIRST_NAME)
FROM EMPLOYEES ;
Select SUBSTRING(names,1,5) as studentName from student
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 * FROM <Table> WHERE LEFT(<columnName>,1) = "s";