iis服务器助手广告广告
返回顶部
首页 > 资讯 > 数据库 >mysql ft是什么
  • 264
分享到

mysql ft是什么

2023-07-06 04:07:29 264人浏览 八月长安
摘要

本文小编为大家详细介绍“mysql ft是什么”,内容详细,步骤清晰,细节处理妥当,希望这篇“Mysql ft是什么”文章能帮助大家解决疑惑,下面跟着小编的思路慢慢深入,一起来学习新知识吧。mysql ft指的是FullText,即全文索引

本文小编为大家详细介绍“mysql ft是什么”,内容详细,步骤清晰,细节处理妥当,希望这篇“Mysql ft是什么”文章能帮助大家解决疑惑,下面跟着小编的思路慢慢深入,一起来学习新知识吧。

mysql ft指的是FullText,即全文索引;全文索引是为了解决需要基于相似度的查询,而不是精确数值比较;全文索引在大量的数据面前,能比like快N倍,速度不是一个数量级。

MySQL 全文索引 (FullText)

一、简介

基本概念

全文索引是为了解决需要基于相似度的查询,而不是精确数值比较。

虽然使用 like + % 也可以实现模糊匹配,但是对于大量的文本数据检索,是不可想象的。全文索引在大量的数据面前,能比 like 快 N 倍,速度不是一个数量级。

版本支持
  1. Mysql 5.6 以前的版本,只有 MyISAM 存储引擎支持全文索引

  2. MySQL 5.6 及以后的版本,MyISAMInnoDB 存储引擎均支持全文索引

  3. MySQL 5.7.6 中,提供了支持中文、日文和韩文(CJK)的内置全文 ngram 解析器,以及用于日文的可安装 MeCab 全文解析器插件

  4. 全文索引只能用于InnoDBMyISAM表,只能为CHARVARCHARTEXT列创建

  5. 对于大型数据集,<span style="" quot="quot" dashed="""dashed""" yellow="""yellow""">将数据加载到没有全文索引的表中然后创建索引要比将数据加载到具有现有全文索引的表中快得多

  6. RDS MySQL 5.6 虽然也支持中文全文检索,但存在BUG

限制与缺点
  • 导致磁盘资源的大量占用。全文索引本身就是一个利用磁盘空间换取性能的方法。全文索引大的原因是,按照某种语言来进行分词

  • 全文索引创建速度慢,而且对有全文索引的各种数据修改操作也慢

  • 使用全文索引并不是对应用透明的。如果要想利用全文索引,必须修改查询语句。原有的查询语句是不可能利用全文索引的,需要改成全文索引规定的语法

  • 不区分大小写

  • 分区表不支持全文搜索

  • 由多列组合而成的全文检索的索引必须使用相同的字符集与排序规则

  • 全文索引可能存在精度问题,即全文索引找到的数据,可能和like到的不一致

  • MATCH()函数中的列必须与FULLTEXT索引中定义的列完全一致,除非是在MyISAM表中使用IN BOOLEAN MODE模式的全文搜索(可在没有建立索引的列执行搜索,但速度很慢)

  • 单列分别建立全文索引时,多列模糊查询时不生效

  • 不同表的全文索引不能放在一起查询,可以两个语句中加上OR

二、操作全文索引

2.1 配置最小搜索长度

我们可以通过 SQL 命令查看当前配置的最小搜索长度(分词长度):

SHOW VARIABLES LIKE 'ft%';
Variable_nameValue
ft_boolean_syntax+ -><()~*:""&|
ft_max_Word_len84
ft_min_word_len1
ft_query_expansion_limit20
ft_stopword_file(built-in)

全文索引的相关参数都无法进行动态修改,必须通过修改 MySQL 的配置文件来完成。修改最小搜索长度的值为 1,首先打开 MySQL 的配置文件 /etc/my.cnf,在 [mysqld] 的下面追加以下内容:

[mysqld]innodb_ft_min_token_size = 1# 最短的索引字符串,默认值为4ft_min_word_len = 1

配置完后重启 MySQL 服务器,并修复或重建全文索引方可生效。
可使用下面的命令修复:

repair table test quick;
2.2 创建索引
  • 建表时创建全文索引

CREATE TABLE fulltext_test (  id int(11) NOT NULL AUTO_INCREMENT,content TEXT NOT NULL,tag VARCHAR(255),PRIMARY KEY (id),FULLTEXT KEY content_tag_fulltext(content, tag) WITH PARSER ngram) ENGINE = InnoDB DEFAULT CHARSET=utf8mb4;
  • 在已存在的表上创建全文索引

CREATE FULLTEXT INDEX content_fulltext ON fulltext_test(content) with parser ngram;
  • 通过 SQL 语句 ALTER TABLE 创建全文索引

ALTER TABLE fulltext_test ADD FULLTEXT INDEX content_fulltext(content) with parser ngram;
2.3 删除索引
  • 使用 DROP INDEX 删除全文索引

DROP INDEX content_fulltext ON fulltext_test;
  • 通过 SQL 语句 ALTER TABLE 删除全文索引

ALTER TABLE fulltext_test DROP INDEX content_fulltext;

三、检索数据

3.1 自然语言的全文检索

默认情况下,或者使用 in natural language mode 修饰符时,match() 函数对文本集合执行自然语言搜索。

SELECT * FROM 表名 WHERE Match(列名1,列名2) Against (检索内容1 检索内容2);

检索内容不需要用逗号隔开!

自然语言搜索引擎将计算每一个文档对象和查询的相关度。这里,相关度是基于匹配的关键词的个数,以及关键词在文档中出现的次数。在整个索引中出现次数越少的词语,匹配时的相关度就越高。相反,非常常见的单词将不会被搜索,如果一个词语的在超过 50% 的记录中都出现了,那么自然语言的搜索将不会搜索这类词语。
3.2 布尔全文检索

在布尔搜索中,我们可以在查询中自定义某个被搜索的词语的相关性,当编写一个布尔搜索查询时,可以通过一些前缀修饰符来定制搜索。

  • 空(也就是默认状况),表示可选的,包含该词的顺序较高

  • + 表示必须包含

  • - 表示必须排除

  • “>” 表示出现该单词时增加相关性,查询的结果靠前

  • “<” 表示出现该单词时降低相关性,查询的结果靠后

  • * 表示通配符,只能接在词后面

  • ~ 允许出现该单词,但是出现时相关性为负,表示拥有该字会下降相关性,但不像「-」将之排除,只是排在较后面

  • "" 双引号表示短语,表示要彻底相符,不可拆字效果,类同于 like '%keyword%'

  • () 经过括号来使用字条件:

+aaa +(>bbb <ccc) aaa="aaa" sql="sql" select="select" from="from" test="test" where="where" match="match" against="against" in="in" boolean="boolean" mode="mode" select="select" from="from" tommy="tommy" where="where" match="match" against="against" in="in" boolean="boolean" mode="mode" select="select" from="from" tommy="tommy" where="where" match="match" against="against">李秀琴 <练习册 <不是人>是个鬼' in boolean mode);

四、测试结果

测试环境:本机4核16G windows10,MySQL 8.0
测试数据量salebilldetail1276万行,salebill269 万行, customer30 万行, Goods75 万行。

争对测试用的SQL语句,增加了以下全文索引:

CREATE FULLTEXT INDEX billno_fulltext ON salebill(billno) WITH PARSER ngram;CREATE FULLTEXT INDEX remarks_fulltext ON salebill(remarks) WITH PARSER ngram;CREATE FULLTEXT INDEX remarks_fulltext ON salebilldetail(remarks) WITH PARSER ngram;CREATE FULLTEXT INDEX goodsremarks_fulltext ON salebilldetail(goodsremarks) WITH PARSER ngram;CREATE FULLTEXT INDEX remarks_goodsremarks_fulltext ON salebilldetail(remarks, goodsremarks) WITH PARSER ngram;CREATE FULLTEXT INDEX custname_fulltext ON customer(custname) WITH PARSER ngram;CREATE FULLTEXT INDEX goodsname_fulltext ON goods(goodsname) WITH PARSER ngram;CREATE FULLTEXT INDEX goodscode_fulltext ON goods(goodscode) WITH PARSER ngram;

测试结果,总的来说很魔幻。
为什么魔幻,看下面几个语句:

test_1
-- 测试1,原始 like 查询方式,用时 0.765sselect 1 from salebilldetail d where d.tid=260434 and ((d.remarks like concat('%','葡萄','%')) or (d.goodsremarks like concat('%','葡萄','%')));
test_2
-- 测试2,使用全文索引 remarks_fulltext、goodsremarks_fulltext, 用时 0.834sselect 1 from salebilldetail d where d.tid=260434 and ((match(d.remarks) Against(concat('"','葡萄','"') in boolean mode)) or (match(d.goodsremarks) Against(concat('"','葡萄','"')  in boolean mode)));
test_3
-- 测试3,使用全文索引 remarks_goodsremarks_fulltext, 用时 0.242sselect 1 from salebilldetail d where d.tid=260434 and ((match(d.remarks,d.goodsremarks) Against(concat('"','葡萄','"') in boolean mode)));
test_4
-- 测试4,原始 like 查询方式,不过滤 tid ,用时 22.654sselect t from salebilldetail d where ((d.remarks like concat('%','葡萄','%')) or (d.goodsremarks like concat('%','葡萄','%')));
test_5
-- 测试5,使用全文索引 remarks_fulltext、goodsremarks_fulltext,  不过滤 tid ,用时 24.855sselect 1 from salebilldetail d where ((match(d.remarks) Against(concat('"','葡萄','"') in boolean mode)) or (match(d.goodsremarks) Against(concat('"','葡萄','"')  in boolean mode)));
test_6
-- 测试6,使用全文索引 remarks_goodsremarks_fulltext, 不过滤 tid ,用时 0.213sselect 1 from salebilldetail d where ((match(d.remarks,d.goodsremarks) Against(concat('"','葡萄','"') in boolean mode)));
test_7
-- 测试7,使用全文索引 remarks_goodsremarks_fulltext, 用时 0.22sselect count(1) from salebilldetail d where d.tid=260434 and  ((match(d.remarks,d.goodsremarks) Against(concat('"','葡萄','"') in boolean mode)));
test_8
-- 测试8,使用全文索引 remarks_goodsremarks_fulltext, 不过滤 tid ,用时 0.007sselect count(1) from salebilldetail d where ((match(d.remarks,d.goodsremarks) Against(concat('"','葡萄','"') in boolean mode)));

从上面的测试语句可以看出,数据量越多,查询越简单,全文索引的效果越好

再来看看我们的业务测试SQL:

test_9
-- 测试9select     i.billid    ,if(0,0,i.Qty) as qty      ,if(0,0,i.goodstotal) as total              ,if(0,0,i.chktotal) as selfchktotal       ,if(0,0,i.distotal) as distotal     ,if(0,0,i.otherpay) as feetotal      ,if(0,0,ifnull(d.costtotal,0)) as costtotal      ,if(0,0,ifnull(d.maoli,0)) as maoli             ,i.billno    ,from_unixtime(i.billdate,'%Y-%m-%d') as billdate     ,from_unixtime(i.createdate,'%Y-%m-%d %H:%i:%s') as createdate     ,if(i.sdate=0,'',from_unixtime(i.sdate,'%Y-%m-%d  %H:%i:%s')) as sdate     ,from_unixtime(i.udate,'%Y-%m-%d %H:%i:%s') as udate     ,i.custid ,c.custname    ,i.storeid ,k.storename    ,i.empid ,e.empname    ,i.userid ,u.username    ,i.remarks                                   ,i.effect,i.settle,i.redold,i.rednew         ,i.printtimes     ,(case  when i.rednew=1 then 1  when i.redold=1 then 2  when i.settle=1 then 3  when i.effect=1 then 4  else 9 end) as state     ,(case  when i.rednew=1 then '红冲单'  when i.redold=1 then '已红冲'  when i.settle=1 then '已结算'  when i.effect=1 then '已过账'  else '草稿' end) as statetext    ,'' as susername     ,'' as accname from salebill ileft join coursecentersale d on d.tid=i.tid and d.billid=i.billidleft join customer c on c.tid=i.tid and c.custid=i.custidleft join store k on k.tid=i.tid and k.storeid=i.storeidleft join employee e on e.tid=i.tid and e.empid=i.empidleft join user u on u.tid=i.tid and u.userid=i.useridwhere i.tid=260434 and (i.billtype = 5 or i.effect = 1)    and ('_billdate_f_'!='')    and ('_billdate_t_'!='')    and ('_sdate_f_'!='')    and ('_sdate_t_'!='')    and ('_udate_f_'!='')    and ('_udate_t_'!='')    and ('_cdate_f_'!='')    and ('_cdate_t_'!='')    and ('_billid_'!='')          and ('_custid_'!='')          and ('_storeid_'!='')         and ('_empid_'!='')           and ('_custstop_'!='')           and (        (i.billno like concat('%','葡萄','%'))        or (i.remarks like concat('%','葡萄','%'))        or exists(select 1 from salebilldetail d where d.tid=260434 and d.billid=i.billid and ((d.remarks like concat('%','葡萄','%')) or (d.goodsremarks like concat('%','葡萄','%'))))        or exists(select 1 from customer c where c.tid=260434 and c.custid=i.custid and (c.custname like concat('%','葡萄','%')))        or exists(select 1 from goods g join salebilldetail d on d.tid=g.tid and d.goodsid=g.goodsid where d.tid=260434 and d.billid=i.billid and ((g.goodsname like concat('%','葡萄','%')) or (g.goodscode like concat('%','葡萄','%'))))    )    and i.rednew=0      and i.billid not in (select billid from coursecenter_del t where t.tid=260434)    and ((i.settle=1 and i.effect=1 and i.redold=0 and i.rednew=0)) order by udate desc,billno desclimit 0,100;

执行时间约 1.6 秒,使用的是 like 方式。

改成使用全文索引方式:

test_10
-- 测试10select     i.billid    ,if(0,0,i.qty) as qty             ,if(0,0,i.goodstotal) as total       ,if(0,0,i.chktotal) as selfchktotal      ,if(0,0,i.distotal) as distotal     ,if(0,0,i.otherpay) as feetotal      ,if(0,0,ifnull(d.costtotal,0)) as costtotal     ,if(0,0,ifnull(d.maoli,0)) as maoli      ,i.billno    ,from_unixtime(i.billdate,'%Y-%m-%d') as billdate     ,from_unixtime(i.createdate,'%Y-%m-%d %H:%i:%s') as createdate     ,if(i.sdate=0,'',from_unixtime(i.sdate,'%Y-%m-%d  %H:%i:%s')) as sdate     ,from_unixtime(i.udate,'%Y-%m-%d %H:%i:%s') as udate     ,i.custid ,c.custname    ,i.storeid ,k.storename    ,i.empid ,e.empname    ,i.userid ,u.username    ,i.remarks                                   ,i.effect,i.settle,i.redold,i.rednew         ,i.printtimes     ,(case  when i.rednew=1 then 1  when i.redold=1 then 2  when i.settle=1 then 3  when i.effect=1 then 4  else 9 end) as state     ,(case  when i.rednew=1 then '红冲单'  when i.redold=1 then '已红冲'  when i.settle=1 then '已结算'  when i.effect=1 then '已过账'  else '草稿' end) as statetext    ,'' as susername     ,'' as accname from salebill ileft join coursecentersale d on d.tid=i.tid and d.billid=i.billidleft join customer c on c.tid=i.tid and c.custid=i.custidleft join store k on k.tid=i.tid and k.storeid=i.storeidleft join employee e on e.tid=i.tid and e.empid=i.empidleft join user u on u.tid=i.tid and u.userid=i.useridwhere i.tid=260434 and (i.billtype = 5 or i.effect = 1)    and ('_billdate_f_'!='')    and ('_billdate_t_'!='')    and ('_sdate_f_'!='')    and ('_sdate_t_'!='')    and ('_udate_f_'!='')    and ('_udate_t_'!='')    and ('_cdate_f_'!='')    and ('_cdate_t_'!='')    and ('_billid_'!='')          and ('_custid_'!='')          and ('_storeid_'!='')         and ('_empid_'!='')           and ('_custstop_'!='')           and (        (match(i.billno) against(concat('"','葡萄','"') in boolean mode))        or (match(i.remarks) against(concat('"','葡萄','"') in boolean mode))        or exists(select 1 from salebilldetail d where d.tid=260434 and d.billid=i.billid and ((match(d.remarks) Against(concat('"','葡萄','"') in boolean mode)) or (match(d.goodsremarks) Against(concat('"','葡萄','"')  in boolean mode))))        or exists(select 1 from customer c where c.tid=260434 and c.custid=i.custid and (match(c.custname) Against(concat('"','葡萄','"') in boolean mode)))        or exists(select 1 from goods g join salebilldetail d on d.tid=g.tid and d.goodsid=g.goodsid where d.tid=260434 and d.billid=i.billid      and ((match(g.goodsname) Against(concat('"','葡萄','"') in boolean mode))     or (match(g.goodscode) Against(concat('"','葡萄','"') in boolean mode))))    )    and i.rednew=0      and i.billid not in (select billid from coursecenter_del t where t.tid=260434)    and ((i.settle=1 and i.effect=1 and i.redold=0 and i.rednew=0)) order by udate desc,billno desclimit 0,100;

执行时间约 1.6 秒,与使用的是 like 方式差不多。

最魔幻的地方来了,如果将上面的SQL语句中(salebilldetail表使用全文索引 remarks_fulltextgoodsremarks_fulltext的地方)

exists(select 1 from salebilldetail d where d.tid=260434 and d.billid=i.billid and ((match(d.remarks) Against(concat('"','葡萄','"') in boolean mode)) or (match(d.goodsremarks) Against(concat('"','葡萄','"')  in boolean mode))))
test_11

改成使用全文索引 remarks_goodsremarks_fulltext

-- 测试11exists(select 1 from salebilldetail d where d.tid=260434 and d.billid=i.billid and ((match(d.remarks,d.goodsremarks) Against(concat('"','葡萄','"') in boolean mode))))

执行时间无限长(跑了半天没成功)?
经分析,在 where 子句中,一个条件子句中包含一个以上 match 时会出现这样的情况。即:

-- and 中只有一个全文检索时正常, 用时0.2秒select xxx from xxx...and (exists(select 1 from salebilldetail d where d.tid=260434 and d.billid=i.billid and ((match(d.remarks,d.goodsremarks) Against(concat('"','葡萄','"') in boolean mode)))))...-- 下面这样就异常了,会慢成百上千倍,用时 160 秒, 如果有更多的 match ,会更夸张的慢下去select xxx from xxx...and (exists(select 1 from salebilldetail d where d.tid=260434 and d.billid=i.billid and ((match(d.remarks,d.goodsremarks) Against(concat('"','葡萄','"') in boolean mode))))or match(i.billno) against(concat('"','葡萄','"') in boolean mode))...
测试结果汇总
查询用时(秒)备注
test 10.765原始like查询
test 20.834全文索引 remarks_fulltextgoodsremarks_fulltext
test 30.242全文索引 remarks_goodsremarks_fulltext
---

test 422.654原始like查询,不过滤 tid
test 524.855全文索引 remarks_fulltextgoodsremarks_fulltext,  不过滤 tid
test 60.213全文索引 remarks_goodsremarks_fulltext, 不过滤 tid
---

test 70.22全文索引 remarks_goodsremarks_fulltext, count
test 80.007全文索引 remarks_goodsremarks_fulltext, 不过滤 tid, count
---

test 91.6业务测试SQL,原始like查询
test 101.6业务测试SQL,全文索引 remarks_fulltextgoodsremarks_fulltext
test 11失败业务测试SQL,全文索引 remarks_goodsremarks_fulltext

五、MySQL 版本升级

因线上系统目前是 RDS MySQL 5.6,故简单描述升级相关问题。

  • Group By: 在 MySQL 5.7 之后,默认使用增加了限制,一些在 MySQL 5.6 可执行的Group By语句,在 5.7 之后会报错,可以更改新版本 MySQL 的 sqlModel

    -- 查询 sql_modeselect @@SESSION.sql_mode;-- 设置SET GLOBAL sql_mode = 'STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';-- 或 设置 (修改于当前会 话,关闭当前会话后失效)SET SESSION sql_mode = 'STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION';-- 刷新flush PRIVILEGES;
    • ONLY_FULL_GROUP_BY: 对于GROUP BY聚合操作,如果在SELECT中的列,没有在GROUP BY中出现,那么这个SQL是不合法的,因为列不在GROUP BY从句中

    • NO_AUTO_VALUE_ON_ZERO: 该值影响自增长列的插入。默认设置下,插入0NULL代表生成下一个自增长值。如果用户希望插入的值为0,而该列又是自增长的,那么这个选项就有用了。

    • STRICT_TRANS_TABLES:在该模式下,如果一个值不能插入到一个事务中,则中断当前的操作,对非事务表不做限制

    • NO_ZERO_IN_DATE:在严格模式下,不允许日期和月份为零

    • NO_ZERO_DATE:设置该值,mysql数据库不允许插入零日期,插入零日期会抛出错误而不是警告

    • ERROR_FOR_DIVISION_BY_ZERO:在insertupdate过程中,如果数据被零除,则产生错误而非警告。如果未给出该模式,那么数据被零除时MySql返回NULL

    • NO_AUTO_CREATE_USER: 禁止GRANT创建密码为空的用户

    • NO_ENGINE_SUBSTITUTION:如果需要的存储引擎被禁用或未编译,那么抛出错误。不设置此值时,用默认的存储引擎替代,并抛出一个异常

    • PIPES_AS_CONCAT:将"||"视为字符串的连接操作符而非或运算符,这和oracle数据库是一样是,也和字符串的拼接函数Concat想类似

    • ANSI_QUOTES:启用后,不能用双引号来引用字符串,因为它被解释为识别符

    • 方式2:在配置文件中添加 sql_mode = '对应需要的模式'

    • sql_mode 模式说明:

    • 方式1:重启 MySQL 后失效

  • MySQL8.0 修改了账号密码加密策略 (默认的认证插件由mysql_native_password更改为caching_sha2_password),导致一些可视化软件无法连接 mysql8.0 版本的数据库。如果需要,可以修改默认的策略或者账号密码的认证策略

    [mysqld]default_authentication_plugin = mysql_native_password
    -- 修改加密规则 ALTER USER 'root'@'localhost' IDENTIFIED BY 'password' PASSWORD EXPIRE NEVER; -- 更新用户密码ALTER USER '账号'@'%' IDENTIFIED WITH mysql_native_password BY '密码';-- 刷新权限FLUSH PRIVILEGES;
    • 方式2:执行语句修改某账号密码验证策略

    • 方式1:配置文件中添加, 让mysql使用原密码策略 (需重启mysql服务)

  • MySQL8.0 授权用户账号语法变更,创建用户的操作已经不支持grant的同时创建用户方式,需要先创建用户再进行授权。

    -- 原来的流程:mysql> grant all on *.* to 'admin'@'%' identified by 'admin';-- 新的正确流程:mysql> create user 'admin'@'%' identified by 'admin';mysql> grant all on *.* to 'admin'@'%' ;mysql> flush privileges;
  • 数据库连接区别

    jdbc:mysql://{ip}:{port}/{db}&#63;characterEncoding=utf8&useSSL=false&serverTimezone=UTC// useSSL  如果不配置false 项目可以正常启动但是会提示ssl问题// serverTimezone=UTC 必须配置【时区设置成自己对应的时区】否则项目会报错
    show variables like '%time_zone%';set global time_zone='+8:00';
    • 如果时区问题还不能解决:

    • JDBC 连接串修改如下(首先需要驱动使用8.0对应连接的驱动):

  • MySQL 5.7 原生支持JSON类型,并引入了众多jsON函数

  • MySQL 8.0 JSON字段的部分更新(JSON Partial Updates)

  • MySQL 8.0 默认字符集由latin1修改为utf8mb4

  • MySQL 8.0 正则表达式的增强,新增了4个相关函数,REGEXP_INSTR()REGEXP_LIKE()REGEXP_REPLACE()REGEXP_SUBSTR()

  • MySQL 8.0 GROUP BY语句不再隐式排序 (忽略在Group By中的排序命令,如 desc, asc)

读到这里,这篇“mysql ft是什么”文章已经介绍完毕,想要掌握这篇文章的知识点还需要大家自己动手实践使用过才能领会,如果想了解更多相关内容的文章,欢迎关注编程网数据库频道。

您可能感兴趣的文档:

--结束END--

本文标题: mysql ft是什么

本文链接: https://www.lsjlt.com/news/357711.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • mysql ft是什么
    本文小编为大家详细介绍“mysql ft是什么”,内容详细,步骤清晰,细节处理妥当,希望这篇“mysql ft是什么”文章能帮助大家解决疑惑,下面跟着小编的思路慢慢深入,一起来学习新知识吧。mysql ft指的是FullText,即全文索引...
    99+
    2023-07-06
  • mysql ft指的是什么
    本文小编为大家详细介绍“mysql ft指的是什么”,内容详细,步骤清晰,细节处理妥当,希望这篇“mysql ft指的是什么”文章能帮助大家解决疑惑,下面跟着小编的思路慢慢深入,一起来学习新知识吧。 ...
    99+
    2023-04-19
    mysql
  • 什么是MySQL
    本篇内容主要讲解“什么是MySQL”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“什么是MySQL”吧!MySQL 是最流行的关系型数据库管理系统,在 WEB 应...
    99+
    2024-04-02
  • 什么是MySQL binlog
    这篇文章主要讲解了“什么是MySQL binlog”,文中的讲解内容简单清晰,易于学习与理解,下面请大家跟着小编的思路慢慢深入,一起来研究和学习“什么是MySQL binlog”吧!1.binlog简介bi...
    99+
    2024-04-02
  • 什么是MySQL Utilities
    这期内容当中小编将会给大家带来有关什么是MySQL Utilities,文章内容丰富且以专业的角度为大家分析和叙述,阅读完这篇文章希望大家可以有所收获。 MySQL Utilit...
    99+
    2024-04-02
  • mysql router是什么
    本篇内容主要讲解“mysql router是什么”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“mysql router是什么”吧!  什么是MySQL Rout...
    99+
    2024-04-02
  • mysql driver是什么
    MysqlDriver是一个开源的Java数据库连接驱动程序,用于连接和操作MySQL数据库,其功能有:1、连接和断开数据库;2、执行SQL查询;3、事务管理;4、数据库元数据;5、错误处理。本教程操作环境:windows10系统、mysq...
    99+
    2023-07-25
  • mysql-connector是什么
    MySQL Connector是一个用于连接和操作MySQL数据库的Python库。它是MySQL官方提供的一个驱动程序,可以在Py...
    99+
    2023-09-17
    mysql
  • mysql index是什么
    MySQL索引是一种用于提高数据库查询性能的数据结构。它是在表中某些列或者表达式上创建的,用于加快查询的速度和减少查询的开销。索引可...
    99+
    2023-10-10
    MySQL
  • MySQL架构是什么
    这篇文章主要介绍MySQL架构是什么,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!MySQL服务器架构、各种存储引擎间的主要区别及区别的重要性回顾MySQL历史背景、基准测试,通过简...
    99+
    2024-04-02
  • MySQL是什么东西
    本篇内容主要讲解“MySQL是什么东西”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“MySQL是什么东西”吧!1、概念(1)什么是MySQLMySQL原本是一个...
    99+
    2024-04-02
  • mysql的collation是什么
    本篇内容介绍了“mysql的collation是什么”的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成! my...
    99+
    2024-04-02
  • mysql指的是什么
    这篇文章主要介绍了mysql指的是什么,具有一定借鉴价值,感兴趣的朋友可以参考下,希望大家阅读完这篇文章之后大有收获,下面让小编带着大家一起了解一下。PHP MySQL 简介:通过 PHP,您可以连接和操作数据库。 MySQL 是跟 PHP...
    99+
    2023-06-15
  • mysql是什么工具
    mysql 是一种开源的 rdbms,使用 sql 管理和查询数据,其主要功能包括:数据存储和管理数据查询和检索事务支持索引优化安全访问控制备份和恢复 MySQL:是什么工具? MyS...
    99+
    2024-04-05
    mysql
  • mysql是干什么的
    mysql 是一种开源关系型数据库管理系统,用于存储和管理数据。其主要功能包括:数据存储和管理数据检索数据安全性能优化可扩展性mysql 具备开源、易用、可靠、可移植等优点,使其成为各种...
    99+
    2024-04-05
    mysql
  • mysql端口是什么
    MySQL端口是指用于与MySQL服务器建立连接和进行通信的网络端口号,当应用程序或客户端需要连接到MySQL服务器时,需要指定要连接的主机名和端口号。通过指定正确的端口号,可以确保连接能够成功建立并与MySQL服务器进行正常的通信。本教程...
    99+
    2023-07-25
  • mysql中blob是什么
    小编给大家分享一下mysql中blob是什么,相信大部分人都还不怎么了解,因此分享这篇文章给大家参考一下,希望大家阅读完这篇文章后大有收获,下面让我们一起去了解一下吧!什么是blob,mysql blob大...
    99+
    2024-04-02
  • 什么是MySQL索引
    这篇文章给大家介绍什么是MySQL索引,内容非常详细,感兴趣的小伙伴们可以参考借鉴,希望对大家能有所帮助。前言:索引是MySQL数据库中的重要对象之一,索引的目的在于提高查询效率。可以类比字典中的目录,查找...
    99+
    2024-04-02
  • mysql索引是什么
    这篇文章主要介绍了mysql索引是什么,具有一定借鉴价值,需要的朋友可以参考下。希望大家阅读完这篇文章后大有收获。下面让小编带着大家一起了解一下。mysql索引是什么?索引是能够使MySQL快速读取数据的数...
    99+
    2024-04-02
  • MySQL的Seconds_Behind_Master是什么
    这篇文章给大家分享的是有关MySQL的Seconds_Behind_Master是什么的内容。小编觉得挺实用的,因此分享给大家做个参考,一起跟随小编过来看看吧。Seconds_Behind_Master对于mysql主备实例,seconds...
    99+
    2023-06-15
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作