当前位置:Gxlcms > mysql > RankingswithInnoDBFull-TextSearch_MySQL

RankingswithInnoDBFull-TextSearch_MySQL

时间:2021-07-01 10:21:17 帮助过:11人阅读

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:

人气教程排行