当前位置:网站首页>Detailed explanation of data types of MySQL columns
Detailed explanation of data types of MySQL columns
2022-07-06 17:24:00 【Cute new vegetable dog】
Detailed explanation of the data type of the column
Numerical type
- tinyint Very small data 1 Bytes
- smallint Smaller data 2 Bytes
- mediumint Medium data 3 Bytes
- int Standard integer 4 Bytes
- bigint Big data 8 Bytes
- float Floating point numbers 4 Bytes
- double Floating point numbers 8 Bytes ( There's a problem with accuracy )
- decimal Floating point numbers in string form In financial calculation , Generally used decimal
character string
- char String of fixed size 0-255
- varchar Variable string 0-65535 Common variables string
- tinytext Micro text 2^8-1
- text Text string 2^16-1 Save large text
Time date
- data YYYY-MM-DD Date format
- time HH:mm:ss Time format
- datatime:YYYY-MM-DD HH:mm:ss The most common time format
- timestamp Time stamp 1970.1.1 The number of milliseconds up to now Also more commonly used
- year The year means
null
- No value , Unknown
- – Be careful , Do not use null Carry out operations , The result is null
边栏推荐
- Description of project structure configuration of idea
- Programmer orientation problem solving methodology
- Only learning C can live up to expectations top5 S1E8 | S1E9: characters and strings & arithmetic operators
- Junit单元测试
- Coursera cannot play video
- 关于Selenium启动Chrome浏览器闪退问题
- [ciscn 2021 South China]rsa writeup
- Akamai anti confusion
- JVM垃圾回收概述
- 唯有学C不负众望 TOP3 Demo练习
猜你喜欢
随机推荐
關於Stream和Map的巧用
1. Introduction to JVM
Flink源码解读(一):StreamGraph源码解读
【逆向】脱壳后修复IAT并关闭ASLR
High performance mysql (Third Edition) notes
JUnit unit test
Activiti目录(一)重点介绍
Program counter of JVM runtime data area
华为认证云计算HICA
JVM class loading subsystem
mysql的列的数据类型详解
Only learning C can live up to expectations top3 demo exercise
vscode
在 vi 编辑器中的命令模式下,删除当前光标处的字符使用 __ 命 令。
Wu Jun's trilogy experience (VII) the essence of Commerce
SQL调优小记
沉淀下来的数据库操作类-C#版(SQL Server)
Interview collection library
CentOS7上Redis安装
Flink 解析(五):State与State Backend