当前位置:网站首页>mysql的列的数据类型详解
mysql的列的数据类型详解
2022-07-06 09:32:00 【萌新菜狗】
列的数据类型详解
数值型
- tinyint 十分小的数据 1个字节
- smallint 较小的数据 2个字节
- mediumint 中等大小的数据 3个字节
- int 标准的整数 4个字节
- bigint 较大的数据 8个字节
- float 浮点数 4个字节
- double 浮点数 8个字节(有精度问题)
- decimal 字符串形式的浮点数 金融计算的时候,一般是使用decimal
字符串
- char 字符串固定大小的 0-255
- varchar 可变字符串 0-65535 常用的变量 string
- tinytext 微型文本 2^8-1
- text 文本串 2^16-1 保存大文本
时间日期
- data YYYY-MM-DD 日期格式
- time HH:mm:ss 时间格式
- datatime:YYYY-MM-DD HH:mm:ss 最常用的时间格式
- timestamp 时间戳 1970.1.1 到现在的毫秒数 也较为常用
- year 年份表示
null
- 没有值,未知
- –注意,不要使用null进行运算,结果为null
边栏推荐
- Shell_ 01_ data processing
- 一个数10年工作经验的微服务架构老师的简历
- After idea installs the plug-in, restart the plug-in and disappear
- MySQL digital function
- Idea resolving jar package conflicts
- Fdog series (4): use the QT framework to imitate QQ to realize the login interface, interface chapter.
- ByteDance 2022 school recruitment R & D advance approval publicity meeting, students' top 10 issues
- Many papers on ByteDance have been selected into CVPR 2021, and the selected dry goods are here
- Only learning C can live up to expectations Top1 environment configuration
- 8086 CPU internal structure
猜你喜欢

JVM之垃圾回收器上篇

亮相Google I/O,字节跳动是这样应用Flutter的

Shell_ 03_ environment variable

一个数10年工作经验的微服务架构老师的简历

Fdog series (V): use QT to imitate QQ to realize login interface to main interface, function chapter.

Alibaba cloud server builds SVN version Library

Coursera cannot play video

Mongodb learning notes

Compile homework after class

姚班智班齐上阵,竞赛高手聚一堂,这是什么神仙编程大赛?
随机推荐
Fdog series (V): use QT to imitate QQ to realize login interface to main interface, function chapter.
DOS function call
Mongodb在node中的使用
DOS 功能调用
Fdog series (4): use the QT framework to imitate QQ to realize the login interface, interface chapter.
姚班智班齐上阵,竞赛高手聚一堂,这是什么神仙编程大赛?
The most lost road I have ever walked through is the brain circuit of ByteDance programmers
Restful style interface design
The difference between URI and URL
was unable to send heartbeat
Assembly language addressing mode
Notes on how the network is connected
After idea installs the plug-in, restart the plug-in and disappear
Only learning C can live up to expectations Top1 environment configuration
学习投资大师的智慧
ByteDance 2022 school recruitment R & D advance approval publicity meeting, students' top 10 issues
字节跳动春招攻略:学长学姐笔经面经,还有出题人「锦囊」
唯有学C不负众望 TOP4 S1E6:数据类型
Some instructions on whether to call destructor when QT window closes and application stops
谢邀,人在工区,刚交代码,在下字节跳动实习生