As I ask upon https://dba.stackexchange.com/q/338422/118215
I search in this table:
mytable:
---
id PK Biginteger Autoincrement
name varchar(255)
Like this:
select * from mytable where name like "%someval%";
And I want to sort my result using the closest match towards someval
. How I can do this?