假设我有一个包含以下数据的表:
如果我进行查询: SELECT name FROM table LIKE '%joao%'
SELECT name FROM table LIKE '%joao%'
结果如下:
SELECT * from z_teste WHERE name LIKE '%joao%' ORDER BY name ASC
如果我进行查询: SELECT * from z_teste WHERE name LIKE '%joao%' ORDER BY name DESC
SELECT * from z_teste WHERE name LIKE '%joao%' ORDER BY name DESC
最相似的字段来自ID4,紧跟在5之后,然后是2,依此类推。
怎么做这个圣职?