Answer the question
In order to leave comments, you need to log in
Postgres trim string from end?
How to take the last 10 characters from a string?
Answer the question
In order to leave comments, you need to log in
select substring ( 'yyyyyyyyyyyyy' from length ('yyyyyyyyyyyyy') - 10 )
select
substring(fieldname, char_length(fieldname) - 10)
from tablename;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question