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

利于seo的建站系统有哪些画册设计欣赏

利于seo的建站系统有哪些,画册设计欣赏,帝国cms源码,广州搜索排名优化在MySQL中#xff0c;即使表中没有数据#xff0c;查询优化器也会考虑使用索引来执行查询。但在某些情况下#xff0c;查询优化器可能会选择不使用索引#xff0c;这通常是基于成本效益分析的结果。 表中没有任何数据时#xff0c;无论是否使用索引#xff0c;查询结果都…在MySQL中即使表中没有数据查询优化器也会考虑使用索引来执行查询。但在某些情况下查询优化器可能会选择不使用索引这通常是基于成本效益分析的结果。 表中没有任何数据时无论是否使用索引查询结果都是一样的。但直接扫描表全表扫描可能比使用索引更快因为即使是空表访问索引也需要一定的开销但并不会带来性能提升。 create table test(id int primary key, name varchar(10)); Query OK, 0 rows affected (0.10 sec)mysql explain select * from test where id1; ------------------------------------------------------------------------------------------------------------------------------ | id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra | ------------------------------------------------------------------------------------------------------------------------------ | 1 | SIMPLE | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | NULL | no matching row in const table | ------------------------------------------------------------------------------------------------------------------------------ 1 row in set, 1 warning (0.00 sec)mysql insert into test value(1, a); Query OK, 1 row affected (0.01 sec)mysql explain select * from test where id1; ---------------------------------------------------------------------------------------------------------- | id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra | ---------------------------------------------------------------------------------------------------------- | 1 | SIMPLE | test | NULL | const | PRIMARY | PRIMARY | 4 | const | 1 | 100.00 | NULL | ---------------------------------------------------------------------------------------------------------- 1 row in set, 1 warning (0.00 sec)使用如下SQL语句建表并使用b列作为条件查询。按照索引最左匹配原则此时应该无法使用索引。但如果表中只包含主键列和索引列此时查询优化器还是会使用索引。示例如下 CREATE TABLE t1 (id int NOT NULL,a int DEFAULT NULL,b int DEFAULT NULL,c int DEFAULT NULL,PRIMARY KEY (id),KEY inx_abc (a,b,c) );CREATE TABLE t2 (id int NOT NULL,a int DEFAULT NULL,b int DEFAULT NULL,c int DEFAULT NULL,d int DEFAULT NULL,PRIMARY KEY (id),KEY inx_abc (a,b,c) );# 插入两条数据 insert into t1 value(1, 1, 1, 1); insert into t2 value(1, 1, 1, 1, 1); explain select * from t1 where b1; ---------------------------------------------------------------------------------------------------------------------------- | id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra | ---------------------------------------------------------------------------------------------------------------------------- | 1 | SIMPLE | t1 | NULL | index | inx_abc | inx_abc | 15 | NULL | 1 | 100.00 | Using where; Using index | ---------------------------------------------------------------------------------------------------------------------------- 1 row in set, 1 warning (0.00 sec) explain select * from t2 where b1; ----------------------------------------------------------------------------------------------------------- | id | select_type | table | partitions | type | possible_keys | key | key_len | ref | rows | filtered | Extra | ----------------------------------------------------------------------------------------------------------- | 1 | SIMPLE | t2 | NULL | ALL | NULL | NULL | NULL | NULL | 1 | 100.00 | Using where | ----------------------------------------------------------------------------------------------------------- 1 row in set, 1 warning (0.00 sec)同理以下SQL也有类似现象 explain select * from t1 where b1 and c1;explain select * from t1 where c1;explain select * from t2 where b1 and c1;explain select * from t2 where c1;
http://www.hkea.cn/news/14585162/

相关文章:

  • 苏州市住房城乡建设局网站仿淘宝php c2c电子商务网站模板
  • 房产网站建设整体架构做网站都有什么项目
  • 三明市建设局网站网站建设与管理的展望与未来
  • 邯郸网站设计应搜韦欣cidun8上词2022年大事热点新闻
  • 建设网站要什么手续陕西西安有什么好玩的
  • 儿童 网站 设计帮别人做ppt挣钱的网站
  • 较好的网站设计师培训学校云南百度小程序开发
  • 在线制作图片网站有哪些定制网站开发平台
  • 做加盟的网站建设网站建设需要学什么能力
  • 建设团购网站全网最低价查询网站
  • 网站死链怎么产生的南昌网站搭建建设定制
  • 建设网站项目概述做一个专业的网站多少钱
  • wordpress 访问源端口号新手做网站优化怎么做
  • 网站弹出框怎么做网站制作公司前十排名
  • 长沙商城网站建设seo网站推广服务
  • 做网站一天网站空间站
  • 网站建设公司新排行榜河南网站制作
  • 惠州禅城网站建设单位网站建设总结
  • 网站开发广州四川住房建设厅网站首页
  • 哈尔滨大型网站建设wordpress权限设置
  • 网站首页菜单栏模块怎么做的网站图片添加alt标签
  • 无锡优化网站宁夏网站建设公司
  • 中山网站软件湘潭网站建设 磐石网络实惠
  • 建立一个网站需要什么技术angular做的网站大全
  • 网站建设学习教程wordpress后台添加新的文章类别
  • 番禺网站推广公司怎么在微信上做公众号
  • 明星做代言的购物网站0互联网软件开发工资一般多少
  • 建企业网站行业网html网页大赛优秀作品
  • 大家都用哪个网站做读书笔记南京做网站品牌
  • 灯饰外贸网站小说网站快速做排名