首頁 >資料庫 >mysql教程 >Rankings with InnoDB Full-Text Search_MySQL

Rankings with InnoDB Full-Text Search_MySQL

WBOY
WBOY原創
2016-06-01 13:15:57942瀏覽

mysql>CREATETABLEarticles

    ->        idINTUNSIGNEDAUTO_INCREMENTNOT NULLPRIMARY KEY,

    ->        titleVARCHAR(200),

    ->        bodyTEXT,

    ->        FULLTEXT(title,body)

    ->        )ENGINE=InnoDB;

QueryOK,0rowsaffected

mysql>INSERTINTOarticles(title,body)VALUES('Test Article','blah blah blah'),("Matt's Noise",'this is noisy'),('February Weather','It was terrible this year.'),('Peter Pan','Tis a kids story.'),('Test1','nada'),('Database database database','foo database database database'),('Database article title','body with lots of words.'),('myfulltext database','my test fulltext database');                    

QueryOK,8rowsaffected

Records:8  Duplicates:0  Warnings:

陳述:
本文內容由網友自願投稿,版權歸原作者所有。本站不承擔相應的法律責任。如發現涉嫌抄襲或侵權的內容,請聯絡admin@php.cn