Use the substr function.
From the list of core functions:
substr(X,Y,Z) substr(X,Y) substring(X,Y,Z) substring(X,Y)The
substr(X,Y,Z)function returns a substring of input stringXthat
begins with theY-thcharacter and which isZcharacters long. IfZis
omitted thensubstr(X,Y)returns all characters through the end of the
stringXbeginning with theY-th. The left-most character ofXis
number 1. IfYis negative then the first character of the substring
is found by counting from the right rather than the left. IfZis
negative then theabs(Z)characters preceding theY-thcharacter are
returned. IfXis a string then characters indices refer to actual
UTF-8 characters. IfXis a BLOB then the indices refer to bytes.
substring()is an alias forsubstr()beginning with SQLite version
3.34.