您好,欢迎来到刀刀网。
搜索
您的当前位置:首页RankingswithInnoDBFull-TextSearch_MySQL

RankingswithInnoDBFull-TextSearch_MySQL

来源:刀刀网


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:

Copyright © 2019- gamedaodao.com 版权所有 湘ICP备2022005869号-6

违法及侵权请联系:TEL:199 18 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务