当前位置:网站首页>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
边栏推荐
- 暑假刷题嗷嗷嗷嗷
- Mongodb在node中的使用
- MySQL string function
- Shell_ 04_ Shell script
- js垃圾回收机制和内存泄漏
- Ce n'est qu'en apprenant que c est à la hauteur des attentes Top5 s1e8 | s1e9: caractères et chaînes & opérateurs arithmétiques
- TCP's three handshakes and four waves
- Idea resolving jar package conflicts
- Flink 解析(六):Savepoints
- 唯有学C不负众望 TOP2 p1变量
猜你喜欢
![Which is more important for programming, practice or theory [there are some things recently, I don't have time to write an article, so I'll post an article on hydrology, and I'll fill in later]](/img/a1/7dd41e75d6768159317b65e436030d.jpg)
Which is more important for programming, practice or theory [there are some things recently, I don't have time to write an article, so I'll post an article on hydrology, and I'll fill in later]

1. JVM入门介绍

High performance mysql (Third Edition) notes

Introduction to spring trick of ByteDance: senior students, senior students, senior students, and the author "brocade bag"

When it comes to Google i/o, this is how ByteDance is applied to flutter

Fdog series (4): use the QT framework to imitate QQ to realize the login interface, interface chapter.

程序员定位解决问题方法论

Fdog series (III): use Tencent cloud SMS interface to send SMS, write database, deploy to server, web finale.

Mongodb learning notes

服务器端渲染(SSR)和客户端渲染(CSR)的区别
随机推荐
学习投资大师的智慧
谢邀,人在工区,刚交代码,在下字节跳动实习生
Typescript basic operations
Shell_ 01_ data processing
ByteDance 2022 school recruitment R & D advance approval publicity meeting, students' top 10 issues
登陆验证koa-passport中间件的简单使用
Idea breakpoint debugging skills, multiple dynamic diagram package teaching package meeting.
Activiti directory (IV) inquiry agency / done, approved
服务器端渲染(SSR)和客户端渲染(CSR)的区别
Shell_ 03_ environment variable
Alibaba cloud server docker installation mysql5.5
汇编语言基础知识
The daemon thread starts redis and modifies the configuration file
JVM垃圾回收概述
Mongodb在node中的使用
How to configure hosts when setting up Eureka
唯有学C不负众望 TOP3 Demo练习
Activit fragmented deadly pit
MySQL字符串函数
README. txt