zoukankan      html  css  js  c++  java
  • MySQL------ SQL92语法

    一、内连接

      等值连接、非等值连接、自连接

      1、等值连接;

        语法:   

          select 查询列表

          from 表名1 别名1,表名2 别名2,...

          where 等值连接的连接条件(表1.key = 表2.key)

          【and 筛选条件】

          【group by 分组字段】

          【having 分组后的筛选】

          【order by 排序字段】

        特点:1、 为了解决多表中的字段名重名问题,往往为表起别名,提高语义性

           2、n表连接至少需要n-1个连接条件

             3、等值连接的结果是多表的交集部分

      2、非等值连接

        

    语法:   

          select 查询列表

          from 表名1 别名1,表名2 别名2,...

          where 非等值连接的连接条件(表1.key <>  表2.key)

          【and 筛选条件】

          【group by 分组字段】

          【having 分组后的筛选】

          【order by 排序字段】

  • 相关阅读:
    [Panzura] identify user operations(copy, open, read ... ) in audit log
    Spark 学习
    Zeppelin 学习
    Delta Lake 学习
    传染病模型 SI
    xcodebuild和xcrun实现自动打包iOS应用程序
    控制UIlabel 垂直方向对齐方式的 方法
    ALAssetsLibrary
    CATransform3D
    AVFoundation的使用
  • 原文地址:https://www.cnblogs.com/evething-begins-with-choice/p/12901793.html
Copyright © 2011-2022 走看看