In order to be able to simulate substr from PHP and mysql, I want to do something like
select * from table where last_four_chars(field) = '.png'
The docs have an example directly relevant to this.
select * from table where SUBSTRING(field, -4) = '.png'
2.1m questions
2.1m answers
60 comments
57.0k users