当前位置:网站首页>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_ 05_ operator
- Shell_ 02_ Text three swordsman
- When it comes to Google i/o, this is how ByteDance is applied to flutter
- Assembly language addressing mode
- 8086 分段技术
- ByteDance overseas technical team won the championship again: HD video coding has won the first place in 17 items
- Only learning C can live up to expectations top3 demo exercise
- 姚班智班齐上阵,竞赛高手聚一堂,这是什么神仙编程大赛?
- Shell_ 03_ environment variable
- TypeScript基本操作
猜你喜欢

Shell_ 07_ Functions and regular expressions

Koa Middleware

Activiti目录(四)查询代办/已办、审核

100张图训练1小时,照片风格随意变,文末有Demo试玩|SIGGRAPH 2021

MySQL digital function

Alibaba cloud server builds SVN version Library

Coursera cannot play video

The daemon thread starts redis and modifies the configuration file

汇编语言段定义

High performance mysql (Third Edition) notes
随机推荐
关于Stream和Map的巧用
JVM之垃圾回收器上篇
逻辑运算指令
暑假刷题嗷嗷嗷嗷
Only learning C can live up to expectations top2 P1 variable
Activiti directory (I) highlights
Mongodb learning notes
DS18B20數字溫度計系統設計
Resume of a microservice architecture teacher with 10 years of work experience
The most lost road I have ever walked through is the brain circuit of ByteDance programmers
ByteDance 2022 school recruitment R & D advance approval publicity meeting, students' top 10 issues
学习投资大师的智慧
Shell_ 05_ operator
DS18B20数字温度计系统设计
Shell_ 02_ Text three swordsman
Control transfer instruction
Activiti目录(一)重点介绍
汇编语言段定义
Fdog series (4): use the QT framework to imitate QQ to realize the login interface, interface chapter.
When it comes to Google i/o, this is how ByteDance is applied to flutter