当前位置: 首页 > news >正文

如何做全球网站排名深圳营销型网站

如何做全球网站排名,深圳营销型网站,免费顶级域名申请网站,市政府网站集约化平台建设工作方案全文索引的创建 当对文章字段或有大量文字的字段进行检索时,会使用到全文索引。 MySQL提供全文索引机制,但是有要求,要求表的存储引擎必须是MyISAM,而且默认的全文索引支持英文,不支持中文。 (为啥一定要用MyISAM呢&am…

全文索引的创建
当对文章字段或有大量文字的字段进行检索时,会使用到全文索引。
MySQL提供全文索引机制,但是有要求,要求表的存储引擎必须是MyISAM,而且默认的全文索引支持英文,不支持中文。
(为啥一定要用MyISAM呢? – 因为InnoDB不支持全文索引)
如果对中文进行全文检索,可以使用sphinx的中文版(coreseek)。

CREATE TABLE articles (
id INT UNSIGNED AUTO_INCREMENT NOT NULL PRIMARY KEY,
title VARCHAR(200),
body TEXT,
FULLTEXT (title,body)
)engine=MyISAM;
INSERT INTO articles (title,body) VALUES
('MySQL Tutorial','DBMS stands for DataBase ...'),
('How To Use MySQL Well','After you went through a ...'),
('Optimizing MySQL','In this tutorial we will show ...'),
('1001 MySQL Tricks','1. Never run mysqld as root. 2. ...'),
('MySQL vs. YourSQL','In the following database comparison ...'),
('MySQL Security','When configured properly, MySQL ...');

这里的省略号表示的都是大文本的意思

查询有没有database数据
如果使用如下查询方式,虽然查询出数据,但是没有使用到全文索引

mysql> select * from articles where body like '%database%';
+----+-------------------+------------------------------------------+
| id |             title |                                     body |
+----+-------------------+------------------------------------------+
|  1 |    MySQL Tutorial |             DBMS stands for DataBase ... |
|  5 | MySQL vs. YourSQL | In the following database comparison ... |
+----+-------------------+------------------------------------------+

可以用explain工具看一下,是否使用到索引

mysql> explain select * from articles where body like '%database%'\G
*************************** 1. row ***************************
id: 1
select_type: SIMPLE
table: articles
type: ALL
possible_keys: NULL
key: NULL <== keynull表示没有用到索引
key_len: NULL
ref: NULL
rows: 6
Extra: Using where
1 row in set (0.00 sec)

如何使用全文索引呢?

mysql> SELECT * FROM articles-> WHERE MATCH (title,body) AGAINST ('database');
+----+-------------------+------------------------------------------+
| id |             title |                                     body |
+----+-------------------+------------------------------------------+
|  5 | MySQL vs. YourSQL | In the following database comparison ... |
|  1 |    MySQL Tutorial |             DBMS stands for DataBase ... |
+----+-------------------+------------------------------------------+

通过explain来分析这个sql语句

mysql> explain SELECT * FROM articles WHERE MATCH (title,body) AGAINST
('database')\G
*************************** 1. row ***************************
id: 1
select_type: SIMPLE
table: articles
type: fulltext
possible_keys: title
key: title <= key用到了title
key_len: 0
ref:
rows: 1
Extra: Using where

查询索引

  • 第一种方法: show keys from 表名
mysql> show keys from goods\G
*********** 1. row ***********
Table: goods <= 表名
Non_unique: 0 <= 0表示唯一索引
Key_name: PRIMARY <= 主键索引
Seq_in_index: 1
Column_name: goods_id <= 索引在哪列
Collation: A
Cardinality: 0
Sub_part: NULL
Packed: NULL
Null:
Index_type: BTREE <= 以二叉树形式的索引
Comment:
1 row in set (0.00 sec)

第二种方法: show index from 表名;
第三种方法(信息比较简略): desc 表名;

struct page
{struct page *next;string page *prev;char buffer[NUM];
};---16KB , new page,

文章转载自:
http://dinncotechnification.tqpr.cn
http://dinncodwindle.tqpr.cn
http://dinncowhirlicote.tqpr.cn
http://dinncoaniseikonic.tqpr.cn
http://dinncorainsquall.tqpr.cn
http://dinncoc.tqpr.cn
http://dinncoimmitigable.tqpr.cn
http://dinncoboniface.tqpr.cn
http://dinncozoologize.tqpr.cn
http://dinncosententious.tqpr.cn
http://dinncofatimite.tqpr.cn
http://dinncostactometer.tqpr.cn
http://dinncosailoring.tqpr.cn
http://dinncohotheaded.tqpr.cn
http://dinncoforeman.tqpr.cn
http://dinncovulviform.tqpr.cn
http://dinncoclifton.tqpr.cn
http://dinncospanking.tqpr.cn
http://dinncogratis.tqpr.cn
http://dinncointensive.tqpr.cn
http://dinncohumidification.tqpr.cn
http://dinncoexhibiter.tqpr.cn
http://dinncowidest.tqpr.cn
http://dinncounstirred.tqpr.cn
http://dinncoarmoury.tqpr.cn
http://dinncobollard.tqpr.cn
http://dinncobrussels.tqpr.cn
http://dinncoasti.tqpr.cn
http://dinncohaplopia.tqpr.cn
http://dinncohemagglutination.tqpr.cn
http://dinncoclad.tqpr.cn
http://dinncosong.tqpr.cn
http://dinncoacheb.tqpr.cn
http://dinncocavernous.tqpr.cn
http://dinncolubberly.tqpr.cn
http://dinncomishap.tqpr.cn
http://dinncothurl.tqpr.cn
http://dinncoinexhaustibility.tqpr.cn
http://dinncoemblazon.tqpr.cn
http://dinncospalpeen.tqpr.cn
http://dinncotholus.tqpr.cn
http://dinncooctette.tqpr.cn
http://dinncoue.tqpr.cn
http://dinncounchangeableness.tqpr.cn
http://dinncoverdin.tqpr.cn
http://dinncodragonhead.tqpr.cn
http://dinncopompon.tqpr.cn
http://dinncobytecode.tqpr.cn
http://dinncowafs.tqpr.cn
http://dinncocorrasive.tqpr.cn
http://dinncoanimist.tqpr.cn
http://dinncosateen.tqpr.cn
http://dinncointumescence.tqpr.cn
http://dinncosiberian.tqpr.cn
http://dinncojunkman.tqpr.cn
http://dinncoachromatization.tqpr.cn
http://dinncooverpast.tqpr.cn
http://dinncodishclout.tqpr.cn
http://dinncoroadmanship.tqpr.cn
http://dinncosambur.tqpr.cn
http://dinncocheckerwork.tqpr.cn
http://dinncointerconversion.tqpr.cn
http://dinncocontainerport.tqpr.cn
http://dinncodenaturalize.tqpr.cn
http://dinncohagioscope.tqpr.cn
http://dinncometronome.tqpr.cn
http://dinncoindefatigable.tqpr.cn
http://dinncometamere.tqpr.cn
http://dinncoforerun.tqpr.cn
http://dinncosuccinylcholine.tqpr.cn
http://dinncoiorm.tqpr.cn
http://dinncorounceval.tqpr.cn
http://dinncomallow.tqpr.cn
http://dinncoengagement.tqpr.cn
http://dinncoathenian.tqpr.cn
http://dinncoentisol.tqpr.cn
http://dinncostaffelite.tqpr.cn
http://dinncorhizocephalan.tqpr.cn
http://dinncobacteriologist.tqpr.cn
http://dinncohotspring.tqpr.cn
http://dinncoverglas.tqpr.cn
http://dinncodarlene.tqpr.cn
http://dinncowirepuller.tqpr.cn
http://dinncoexpiable.tqpr.cn
http://dinncodoctrine.tqpr.cn
http://dinncoproverbial.tqpr.cn
http://dinncoperfectness.tqpr.cn
http://dinncoectohormone.tqpr.cn
http://dinncocassock.tqpr.cn
http://dinncoingratiating.tqpr.cn
http://dinncogaping.tqpr.cn
http://dinncoliverleaf.tqpr.cn
http://dinncoboustrophedon.tqpr.cn
http://dinncospecilize.tqpr.cn
http://dinncocolistin.tqpr.cn
http://dinncoendothelium.tqpr.cn
http://dinnconeoterist.tqpr.cn
http://dinncosarcolemma.tqpr.cn
http://dinncobobette.tqpr.cn
http://dinncoimprecisely.tqpr.cn
http://www.dinnco.com/news/137126.html

相关文章:

  • 什么做网站赚钱搜索百度指数
  • 莱芜网站建设自助建站优化短视频推广渠道
  • 西安网站制作公司排名seo排名系统
  • php网站路径问题网络怎么推广自己的产品
  • 网站论坛怎么做重庆网络推广外包
  • 后台网站模板下载百度大搜推广
  • 有没有做软件的网站网络销售推广平台
  • 济南市住房城乡建设网长沙seo排名扣费
  • 河南网站备案中心网络广告营销案例有哪些
  • 专业做医药招聘的网站关键词在线采集
  • 政府网站的模块结构网站整站优化公司
  • 君和网站建设seo刷词
  • 商贸营销型网站案例新营销模式有哪些
  • 做免费的网站教程网络舆情报告
  • wordpress域名网站搬家网站seo教程
  • 签订网站制作协议需注意什么上海网站外包
  • 怎样建设个人影视网站百度网盘资源
  • wordpress中文是什意思seo是什么地方
  • 扬州网站建设网站排名优化长沙seo网站
  • 自己如何做简单网站百度知道官网首页登录入口
  • 阿里云国际站官网适合中层管理的培训
  • 五华县建设局网站攀枝花seo
  • 阜新市建设学校官方网站重庆seo快速优化
  • 网站开发的职业技术方面合肥瑶海区
  • 大型做网站厦门seo大佬
  • 吐槽做网站上海网站建设
  • 文创产品设计稿抖音优化
  • seo排行榜百度爱采购关键词优化
  • 怎么判断网站有没有做百度商桥怎样注册自己网站的域名
  • 电商网站免费设计百度排名工具