How to retrieve the last 4 characters from a mysql database field?

前端 未结 4 1257
面向向阳花
面向向阳花 2020-12-16 12:07

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\'

4条回答
提交回复
热议问题