with small (term) as (
select 'fishing'
union select 'pond'
union select 'cloud'
union select 'big one'
union select 'house'
)
select term
from small
where 'I have a pond at my house. I decided to go fishing and caught a big one.'
REGEXP concat('(^|.*[^a-z])', term, '([^a-z].*|$)') = 1
2条答案
按热度按时间dsf9zpds1#
x33g5p2x2#
不管输入的字符串有多大,都可以使用
FULLTEXT
索引。然后使用以下命令:
有关更多信息,请参阅这些答案:
MATCH AGAINST
andLIKE
combination to search for special characters