当前位置:网站首页>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
边栏推荐
猜你喜欢
![Case: check the empty field [annotation + reflection + custom exception]](/img/50/47cb40e6236a0ba34362cdbf883205.png)
Case: check the empty field [annotation + reflection + custom exception]

肖申克的救赎有感

MySQL date function

MySQL digital function

Alibaba cloud server docker installation mysql5.5

The daemon thread starts redis and modifies the configuration file

Serial serialold parnew of JVM garbage collector

Resume of a microservice architecture teacher with 10 years of work experience

Description of project structure configuration of idea

Flink源码解读(三):ExecutionGraph源码解读
随机推荐
Akamai浅谈风控原理与解决方案
华为认证云计算HICA
Brush questions during summer vacation, ouch ouch
Set up the flutter environment pit collection
Basic knowledge of assembly language
关于Selenium启动Chrome浏览器闪退问题
MySQL数字函数
vscode
吴军三部曲见识(四) 大家智慧
C#版Selenium操作Chrome全屏模式显示(F11)
Final review of information and network security (based on the key points given by the teacher)
沉淀下来的数据库操作类-C#版(SQL Server)
学习投资大师的智慧
C# WinForm中DataGridView单元格显示图片
Only learning C can live up to expectations top2 P1 variable
8086 内存
vscode
吴军三部曲见识(五) 拒绝伪工作者
Only learning C can live up to expectations top5 S1E8 | S1E9: characters and strings & arithmetic operators
Interpretation of Flink source code (III): Interpretation of executiongraph source code