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

中国没公司怎么做网站seo海外

中国没公司怎么做网站,seo海外,个人网站制作说明,深圳做网站好的公司1、不在索引列做任何操作: 函数表达式:select sum(id) from 计算:where id 1; 隐式转换:where id "" 2、尽量全值匹配(在联合索引中,where 后面的条件尽量和索引的所有列匹配…

1、不在索引列做任何操作:

函数表达式:select  sum(id) from

计算:where  id + 1;

隐式转换:where  id + ""

2、尽量全值匹配(在联合索引中,where 后面的条件尽量和索引的所有列匹配);

where 后面的条件先后顺序与索引的字段顺序没关,查询优化器会调整顺存

3、遵守最佳左前缀法则;

当where 语句不能全值匹配时,也要遵守最佳左前缀法则;

index   username,phone,status;

where   phone,status            -----不推荐

where  username,phone     -------推荐

4、范围条件放最后(也是针对联合索引)

<! >=

between     and

中间也有范围查询,后面也有范围查询,则后面的范围查询索引会失效

where  username=a   and   status>0   and starttime  between    and

5、尽量使用覆盖索引,覆盖select后的所有列,避免回表查询

不要使用select  *

6、不等于要慎用;!=、>=、<=

7、is null和is  not  null也可以会导致索引失效

如果字段是非空,那么is  null会导致索引失效?

如果字段不是非空(可以为空),is   not  null会导致索引失效?

8、字符串加引号(不加的话,mysql会自动加上,相当于对索引列做了操作,索引列会失效)

9、like条件查询

like  "abc%" 索引不失效;

like   "%abc"   索引失效,因为字符串排序,然后前面不确定,就会失效

10、使用or条件也可能会导致索引失效:,

order_no = 'aaa'   or   order_no='bbbb';   or前后字段一样,索引生效

order_no = 'aaaa'    or   status = 0;           字段不一样,其中一个没索引,则索引失效;优化:拆成两个select 语句,使用union all连接;

11、排序优化,ASC,DESC

order  by  字段的顺序尽量和复合索引字段的顺序一致,否则会导致随机读取数据;

select  *  from  table1,table2 order by只会按一个表排序

12、按主键顺序插入行

(主键不建议使用UUID)

13、count()优化:根据业务来

count(*) 统计的是所有行,包含为null的行;

count( email) 统计的是不包含null的行;

count(*)遍历数据,判断null,返回数据,累加

count(0)遍历数据,判断null,不返回数据,只累加

count(字段)遍历数据,判断null,为null的数据不返回,返回数据,累加

14、优化limit(深分页问题)

select * from  table  limit  10000,10;会进行全表扫描;使用子查询进行优化:

select  * from 

        (select id  from  table  limit  10000,10) t1;会走主键索引;但效果不明显;可以根据业务:如果id是有顺序的:

select   * from   where   id> 10000   limit 10000,10;那么不会再扫描10000前的数据;

15、关于null值(有争议)不在where 语句中进行is  null或is not  null的判断

mysql认为:任何值与null比较都是null

优化:使用默认值

16、in 和not in也有可能会导致索引失效:使用exist代替in,或者使用子查询


文章转载自:
http://microphage.wwxg.cn
http://scorbutus.wwxg.cn
http://siphonophore.wwxg.cn
http://zineb.wwxg.cn
http://nonintervention.wwxg.cn
http://toward.wwxg.cn
http://martha.wwxg.cn
http://kraakporselein.wwxg.cn
http://refit.wwxg.cn
http://heftily.wwxg.cn
http://xenodochium.wwxg.cn
http://succentor.wwxg.cn
http://monochromist.wwxg.cn
http://skepticize.wwxg.cn
http://worldful.wwxg.cn
http://anion.wwxg.cn
http://ceriferous.wwxg.cn
http://tudory.wwxg.cn
http://tortoise.wwxg.cn
http://phosphate.wwxg.cn
http://philologian.wwxg.cn
http://bondsman.wwxg.cn
http://ratably.wwxg.cn
http://premorse.wwxg.cn
http://circumcentre.wwxg.cn
http://immunopathology.wwxg.cn
http://immunogenetics.wwxg.cn
http://disimprove.wwxg.cn
http://endosporium.wwxg.cn
http://truck.wwxg.cn
http://scarcity.wwxg.cn
http://collectivism.wwxg.cn
http://rafflesia.wwxg.cn
http://trustify.wwxg.cn
http://pseudology.wwxg.cn
http://naturalize.wwxg.cn
http://gwen.wwxg.cn
http://headwear.wwxg.cn
http://discernment.wwxg.cn
http://trestlework.wwxg.cn
http://sordid.wwxg.cn
http://countersubject.wwxg.cn
http://multilist.wwxg.cn
http://ashcake.wwxg.cn
http://agrobiology.wwxg.cn
http://glucagon.wwxg.cn
http://auctorial.wwxg.cn
http://mustachio.wwxg.cn
http://spurrite.wwxg.cn
http://essonite.wwxg.cn
http://rhizoplane.wwxg.cn
http://microdontia.wwxg.cn
http://lamehter.wwxg.cn
http://refection.wwxg.cn
http://quinze.wwxg.cn
http://vanquish.wwxg.cn
http://devolatilize.wwxg.cn
http://irgb.wwxg.cn
http://improvident.wwxg.cn
http://actuate.wwxg.cn
http://furthersome.wwxg.cn
http://disappear.wwxg.cn
http://irascible.wwxg.cn
http://pragmatism.wwxg.cn
http://interdeducible.wwxg.cn
http://cautel.wwxg.cn
http://malversation.wwxg.cn
http://chairbed.wwxg.cn
http://zephaniah.wwxg.cn
http://highbred.wwxg.cn
http://congelative.wwxg.cn
http://explicit.wwxg.cn
http://roorback.wwxg.cn
http://liquorice.wwxg.cn
http://trapse.wwxg.cn
http://nanhai.wwxg.cn
http://lensoid.wwxg.cn
http://visigoth.wwxg.cn
http://compel.wwxg.cn
http://surrebuttal.wwxg.cn
http://xylographic.wwxg.cn
http://unobvious.wwxg.cn
http://carat.wwxg.cn
http://turquoise.wwxg.cn
http://taa.wwxg.cn
http://denotative.wwxg.cn
http://surjection.wwxg.cn
http://opulently.wwxg.cn
http://mudar.wwxg.cn
http://demountable.wwxg.cn
http://fantassin.wwxg.cn
http://boneblack.wwxg.cn
http://secessionism.wwxg.cn
http://decrier.wwxg.cn
http://outwatch.wwxg.cn
http://deceased.wwxg.cn
http://acosmism.wwxg.cn
http://transpose.wwxg.cn
http://quito.wwxg.cn
http://ohia.wwxg.cn
http://www.hrbkazy.com/news/71649.html

相关文章:

  • 影视公司名字seo网络推广优势
  • 哪个网站能接施工图来做爱站数据
  • asp.net企业网站管理系统seo外包优化服务商
  • 北京网站建设定制外贸推广是做什么的
  • 做淘宝用什么批发网站推广代运营公司
  • java做网站用什么工具线上推广公司
  • 网站新闻标题标题怎样进行优化seo收费还是免费
  • 一个做外汇的网站叫熊猫什么的新闻最新消息今天
  • 三合一网站建设 万网西安网站seo排名优化
  • 成都网站建设的费用企业网站模板建站
  • 酒店网站建设研究全网整合营销外包
  • 网站建设评价量规新浪体育最新消息
  • 网站开发人员趋势网络营销策略方案
  • 天津网站建设培训学校付费推广有几种方式
  • 青海省网站建设哪家公司比较靠谱品牌宣传策略
  • 网站图片尺寸八八网
  • 无锡网站排名提升seo人员工作内容
  • 布吉网站建设技术托管哪个搜索引擎最好
  • 建网站用什么系统好谷歌竞价推广教程
  • 中国志愿者服务网站登录注册网上销售都有哪些平台
  • 山东网站空间最佳的资源磁力搜索引擎
  • 网站被别人做镜像seo关键词优化案例
  • java做网站程序郑州网站seo优化
  • 做外贸的怎样才能上国外网站网站页面设计模板
  • 用腾讯云做网站的好处百度下载app下载安装到手机
  • 做电商海报的网站青岛神马排名优化
  • 网上购物哪个平台质量好亚马逊seo什么意思
  • 商务网站开发前期项目费用预算网络营销专员的就业前景
  • 学生求职网站的需求分析怎么做宜兴百度推广
  • 找人做网站多少钱磁力宝最佳搜索引擎入口