Answers for "full-text index mysql"

SQL
1

full-text index mysql

ALTER TABLE TABLE_NAME ADD FULLTEXT
    (column_name1, column_name2, …)
Posted by: Guest on October-10-2021
0

full-text index mysql

-- examble to create fulltext index on posts table on blog

CREATE FULLTEXT INDEX IF NOT EXISTS idx_title_body ON
    posts(title, body);
    
SELECT
    *
FROM
    posts
WHERE
    MATCH(title, body) AGAINST("search words" IN BOOLEAN MODE);
Posted by: Guest on May-16-2021
0

full-text index mysql

CREATE FULLTEXT INDEX IF NOT EXISTS idx_col1_col2 ON
    tableName(col1, col2);
    
SELECT
    *
FROM
    tableName
WHERE
    MATCH(col1, col2) AGAINST("search words");
Posted by: Guest on May-16-2021

Code answers related to "SQL"

Browse Popular Code Answers by Language