문제

I've been away from MySQL for quite some time and I don't know what I'm doing wrong here. I got a simple query where I need to use FULLTEXT search:

SELECT * FROM post WHERE MATCH ( title, content ) AGAINST ( 'Pytho*' )

it doesn't return anything even though I got a lot of posts with Python in the title or content. If I go with full word it works:

SELECT * FROM post WHERE MATCH ( title, content ) AGAINST ( 'Python*' )

도움이 되었습니까?

해결책

try this

 SELECT * FROM post 
 WHERE MATCH ( title, content ) AGAINST ( 'Python' IN BOOLEAN MODE )

DEMO HERE

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top