Files
MySQL-Study/数据库4.1.md
2025-11-14 13:24:53 +08:00

31 lines
661 B
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 一、概述
1. **表** 是数据库对象(最重要、最基本)
2. **表** 是存储数据的基本单位
3. 数据库中包含若干张表(不能同名)
4. 表是由 **行****列** 组成的
5. 表的一行称之为一条 **记录**
# 二、数据类型(重点)
1. 整数类型5种
* tinyint
* smallint
* mediumint
* int
* bigint
2. 小数类型2种浮点数与定点数类型
* float
* double
* decimal(M~D)
3. 字符串类型6种
* Char
* varchar
* tinytext
* text
* mediumtext
* longtext
4. 日期时间类型(五种)
* Date
* datetime
* timestamp
* time
* year
5. 二进制类型(七种)