3

How can I set priority for multiple columns in mysql fulltext search ?

SELECT ID, POSITION, DATA, DATE_FORMAT(DATA, '%Y-%m-%d') AS DATE 
FROM VACANCIES 
WHERE VACANCIES.VISIBLE = '1' 
AND MATCH(POSITION, REQUITEMENST) AGAINST('mysql') 
AND MATCH(POSITION, REQUITEMENST) AGAINST('php') 
ORDER BY DATE(DATA) DESC 
LIMIT 1000

I need to get first results matched column POSITION, then REQUITEMENST

4

0 回答 0