SQL_substr1
SQL Substring

select empno,ename,substr(job,1, 5) "sbstr-5"from emp 

oracle:

Postgresql

MySQL