我在名为'cards'的INNODB表中有大约20,000行,所以FULLTEXT不是一个选项。 请考虑此表: id | name | description
----------------------------------------------------------
1 John Smith Just some dude
2 Ted Johnson Another
子查询我有这样的SQL: Select tbl.id, tbl.name
From
(select table1.id, table1.name
from table1
inner join table2 on table1.id = table2.id
order by table2.priority
) tbl
group by table1.id
order by table