Skip to content
This repository has been archived by the owner on Sep 5, 2020. It is now read-only.

Latest commit

 

History

History
21 lines (20 loc) · 533 Bytes

47-Day5.md

File metadata and controls

21 lines (20 loc) · 533 Bytes

SQL

结构化查询语言

  • 数据操作语言(DML)
  • 数据定义语言(DDL)

key:

标识符号,唯一标识每一个数据,会有下划线来表示

查询语句: SELECT FORM WHERE

常用关键词:

  • LIKE:模糊查询
  • DISTINCT:去重
  • ORDER BY:排序

多表查询

  • 外键
  • JOIN:将两个表进行连接
  • INTERSECT:取交集
  • UNION:取并集(不包含重复元素)
  • UNION ALL:取并集(保留重复元素)

常用数据库平台

  • sqlite
  • postgresql