sqlite substring from right
substr( string, Y, Z)
Z is how many characters you want to print since Y. Y where to start printing from the left.
To get the last 6 characters of User.id:
substr(User.id, -6)
Written by Miles Matthias
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Sqlite
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#