Two Types of Databases
Relational Databases
- Organize data to into one or more tables
- Each table has columns and rows
- A unique key identifies each row
Non-Relational Databases
Organized data is anything but a traditional table
Relational Database Management Systems(RDMS)
- Help users create and maintain a relational database
- mySQL, Oracle, postgreSQL, mariaDB, etc.
- Help users create and maintain a relational database
Structured Query Language (SQL)
- Standardized language for interacting with RDBMS
- Used to to perform CRUD operations,as well as other administrative tasks(user management, security,backup,etc)
- Used to define tables and structures
- SQL code used on one RDBMS is not always portable to another without modification.
Non-Relational Databases(noSQL)
Non-Relational Database Management Systems(NRDMS)
- Help users create and maintain a non-relational database
- MongoDB, dynamoDB, apche cassandra, firebase, etc
- Help users create and maintain a non-relational database
Implementation Specific
SQL is actually a hybrid language, it’s basically 4 types of languages in one:
- Data Query Language(DQL)
- Used to query the database for information
- Get information that is already stored there
- Data Definition Language(DDL)
- Used for definining database schemas
- Data Control Language (DCL)
- Used for controlling access to the data in the database.
- User & permissions management
- Data Manipulation Language(DML)
- Data Query Language(DQL)
INT 数值
- DECIMAL(M,N) 十进制数据
- VARCHAR(N) 长度为N的字符串
- BLOB 二进制大数据对象
- DATE 日期
- TIMESTAMP 时间戳