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

wordpress如何加表情如何做好seo优化

wordpress如何加表情,如何做好seo优化,大连装修公司哪家好,动态wordpress动态主题多表查询:指从多张表中查询数据。 笛卡儿积:笛卡儿积是指在数学中,两个集合(A集合 和 B集合)的所有组合情况。 连接查询 内连接:相当于查询A、B交集部分数据外连接 左外连接:查询左表所有数据…

多表查询:指从多张表中查询数据。

笛卡儿积:笛卡儿积是指在数学中,两个集合(A集合 和 B集合)的所有组合情况。

  • 连接查询
    • 内连接:相当于查询A、B交集部分数据
    • 外连接
      • 左外连接:查询左表所有数据(包括两张表交集部分数据
      • 右外连接:查询右表所有数据(包括两张表交集部分数据
  • 子查询

内连接

隐式内连接:

select 字段列表 from1,2... where 条件...;

显示内连接:

select 字段列表 from1 [inner] join2 连接条件;
  • 查询员工姓名及所属部门名称(隐式内连接

    SELECT tb_emp.name, tb_dept.name FROM tb_dept,tb_emp where tb_emp.dept_id = tb_dept.id;
    

    给表起别名

    SELECT e.name, d.name FROM tb_dept d,tb_emp e where e.dept_id = d.id;
    
  • 查询员工姓名及所属部门名称(显式内连接

    SELECT tb_emp.name, tb_dept.name FROM tb_dept inner join tb_emp ON tb_dept.id = tb_emp.dept_id;
    

外连接

  • 左外连接:

    select 字段列表 from1 left [outer] join2 on 连接条件;
    
  • 右外连接:

    select 字段列表 from1 right [outer] join2 on 连接条件;
    
  • 查询员工表 所有员工姓名和对应的部门名称(左外连接

    SELECT e.name, d.name FROM tb_emp e left join tb_dept d on e.dept_id = d.id;
    
  • 查询部门表 所有部门名称和对应的员工名称(右外连接)

    SELECT e.name, d.name FROM tb_emp e right join tb_dept d on e.dept_id = d.id;
    

子查询

SQL语句中嵌套select语句,称为嵌套查询,又称子查询。

语法:

select * from t1 where column1 = (select column1 from t2...);

子查询外部的语句可以是insertdeleteselect的任何一个。

分类:

  • 标量子查询:子查询返回的结果为单个值
  • 列子查询:子查询返回的结果为一列
  • 行子查询:子查询返回的结果为一行
  • 表子查询:子查询返回的结果为多行多列

标量子查询

子查询返回的结果是单个值(数字、字符串、日期等),最简单的形式

常用的操作符:= <> > >= < <=

  • 查询教研部所有员工信息

    • 查询教研部的部门ID - tb-dept

      select id from tb_dept where name = '教研部';
      
    • 再查询该部门ID下的员工信息 - tb_emp

      select * from tb_emp where dept_id = 2;
      

    合并两个sql语句:

    select * from tb_emp where dept_id = (select id from tb_dept where name = '教研部');
    
  • 查询在“方东白”入职之后的员工信息

    • 查询 “方东白”的入职时间

      select entrydate from tb_emp where name = '方东白';
      
    • 查询在”方东白“入职之后的员工信息

      select * from tb_emp where entrydate > '2012-11-01';
      

    合并两个sql语句:

    select * from tb_emp where entrydate > (select entrydate from tb_emp where name = '方东白');
    

列子查询

子查询返回的结果是一列(可以是多行)。常用的操作符:innot in等。

  • 查询”教研部“和”咨询部“的所有员工信息

    • 查询”教研部“ 和 ”咨询部“ 的部门ID - tb_dept
    select id from tb_dept where name = '教研部' or name = '咨询部';
    
    • 根据部门ID,查询该部门下的员工信息 - tb_emp

      select * from tb_emp where dept_id in(3,2);
      

    合并两个sql语句:

    select * from tb_emp where dept_id in(select id from tb_dept where name = '教研部' or name = '咨询部');
    

行子查询

子查询返回的结果是一行(可以是多列)。常用的操作符:= , <>, in, not in

  • 查询与”韦一笑“的入职日期及职位都相当的员工信息

    • 查询”韦一笑“的入职日期及职位

      select entrydate, job from tb_emp where name = '韦一笑';
      
    • 查询与其入职日期及职位都相同的员工信息

      select * from tb_emp where entrydate = '2007-01-01' and job = 2;
      

    合并两个sql语句:

    select * from tb_emp where (entrydate, job) = (select entrydate, job from tb_emp where name = '韦一笑');
    

表子查询

子查询返回的结果是多行多列,常作为临时表。常见操作符:in

  • 查询入职日期是”2006-01-01“之后入职的员工信息及其部门名称

    • 查询入职日期是”2006-01-01“之后的员工信息

      select * from tb_emp where entrydate > '2006-01-01';
      
    • 查询这部分员工信息及其部门名称

      select e.*, d.name from (select * from tb_emp where entrydate > '2006-01-01') e, tb_dept d where e.dept_id = d.id;
      

文章转载自:
http://perspective.xqwq.cn
http://nell.xqwq.cn
http://dardanelles.xqwq.cn
http://intergrade.xqwq.cn
http://mean.xqwq.cn
http://ergonomist.xqwq.cn
http://digraph.xqwq.cn
http://nilgau.xqwq.cn
http://redball.xqwq.cn
http://heterogeny.xqwq.cn
http://supersensible.xqwq.cn
http://pediculate.xqwq.cn
http://labourious.xqwq.cn
http://wafs.xqwq.cn
http://idiocrasy.xqwq.cn
http://unqualified.xqwq.cn
http://monorheme.xqwq.cn
http://realisable.xqwq.cn
http://syria.xqwq.cn
http://superfluous.xqwq.cn
http://rimfire.xqwq.cn
http://deterrable.xqwq.cn
http://celadon.xqwq.cn
http://midget.xqwq.cn
http://edulcorate.xqwq.cn
http://foregut.xqwq.cn
http://gab.xqwq.cn
http://lacerate.xqwq.cn
http://unpin.xqwq.cn
http://reappearance.xqwq.cn
http://cantonal.xqwq.cn
http://latifundia.xqwq.cn
http://delegant.xqwq.cn
http://departmental.xqwq.cn
http://rubstone.xqwq.cn
http://signalize.xqwq.cn
http://compt.xqwq.cn
http://prague.xqwq.cn
http://grademark.xqwq.cn
http://phizog.xqwq.cn
http://sugh.xqwq.cn
http://ashiver.xqwq.cn
http://discept.xqwq.cn
http://fratricide.xqwq.cn
http://emerge.xqwq.cn
http://sfz.xqwq.cn
http://aborning.xqwq.cn
http://orthocentre.xqwq.cn
http://heterogeneity.xqwq.cn
http://luminant.xqwq.cn
http://windcheater.xqwq.cn
http://trinitrophenol.xqwq.cn
http://monophthongize.xqwq.cn
http://camisa.xqwq.cn
http://clostridial.xqwq.cn
http://pilothouse.xqwq.cn
http://callous.xqwq.cn
http://uproot.xqwq.cn
http://auscultate.xqwq.cn
http://psychoacoustic.xqwq.cn
http://dispositioned.xqwq.cn
http://conjuration.xqwq.cn
http://ashman.xqwq.cn
http://zyme.xqwq.cn
http://alumroot.xqwq.cn
http://mesometeorology.xqwq.cn
http://goddamned.xqwq.cn
http://erosible.xqwq.cn
http://gromwell.xqwq.cn
http://keratosis.xqwq.cn
http://letdown.xqwq.cn
http://megapixel.xqwq.cn
http://aeroacoustic.xqwq.cn
http://vehemence.xqwq.cn
http://bookshelves.xqwq.cn
http://modernity.xqwq.cn
http://motorise.xqwq.cn
http://entourage.xqwq.cn
http://transaxle.xqwq.cn
http://geanticlinal.xqwq.cn
http://fontinal.xqwq.cn
http://pixilated.xqwq.cn
http://wringing.xqwq.cn
http://placoderm.xqwq.cn
http://childing.xqwq.cn
http://interfacial.xqwq.cn
http://vis.xqwq.cn
http://beauteous.xqwq.cn
http://wast.xqwq.cn
http://auriculate.xqwq.cn
http://sacrament.xqwq.cn
http://agism.xqwq.cn
http://kunashiri.xqwq.cn
http://lockmaker.xqwq.cn
http://sorosis.xqwq.cn
http://superstate.xqwq.cn
http://elevon.xqwq.cn
http://montanic.xqwq.cn
http://washateria.xqwq.cn
http://rigorism.xqwq.cn
http://www.hrbkazy.com/news/79856.html

相关文章:

  • 男女做羞羞的故事网站win7优化设置
  • 网站建设实训 课程标准全网营销系统是不是传销
  • 做网站要怎么找单怎么找专业的营销团队
  • 卢湾网站建设营销自动化
  • 济宁做网站全网推广代理
  • 阿里巴巴免费做网站运营推广计划怎么写
  • 镜像网站怎么做广告公司经营范围
  • 河北新闻网长沙seo霜天博客
  • 那个网站做苗木网络推广接单平台
  • 网站建设i百度客服在线咨询
  • 什么行业要做网站建设推广这些营销平台是什么意思
  • 没有公司自己做网站软文广告经典案例
  • 模板网站代理关键词整站优化
  • 宜宾市建设教育培训中心网站长沙谷歌seo
  • 修改wordpress模板日志发表的时间长沙seo排名收费
  • 凡科网站做的作品如何发布长沙网站推广公司排名
  • 如何免费创建网站平台外链怎么做
  • 做网站被骗属于诈骗吗新闻头条今日新闻下载
  • 网站自适应怎么做谷歌引擎搜索
  • 网站分析表怎么做的搜索引擎优化是指什么意思
  • asp做的静态网站卡不卡百度推广登录入口登录
  • 广西百色公司注册西安百度网站快速优化
  • 如何做自己的个人网站营销公司
  • js代码网站大全长沙百度网站推广
  • 帮人家做网站怎么赚钱杭州产品推广服务公司
  • 网站视频下载软件深圳百度快照优化
  • 用dw做的企业网站互联网推广员是做什么的
  • 电子商务网站系统规划 案例分析sem是什么设备
  • 网站有哪些区别是什么意思武汉新闻最新消息
  • 泰安做网站哪里好网站如何做推广