当前位置:网站首页>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
边栏推荐
猜你喜欢
JVM之垃圾回收器下篇
集成开发管理平台
Activiti目录(五)驳回、重新发起、取消流程
ByteDance overseas technical team won the championship again: HD video coding has won the first place in 17 items
[reverse intermediate] eager to try
信息与网络安全期末复习(完整版)
Introduction to spring trick of ByteDance: senior students, senior students, senior students, and the author "brocade bag"
Some feelings of brushing leetcode 300+ questions
MySQL日期函数
Learn the wisdom of investment Masters
随机推荐
自动答题 之 Selenium测试直接运行在浏览器中,就像真正的用户在操作一样。
Prototype chain inheritance
TCP's three handshakes and four waves
High performance mysql (Third Edition) notes
Flink parsing (VI): savepoints
List set data removal (list.sublist.clear)
Flink源码解读(三):ExecutionGraph源码解读
Set up the flutter environment pit collection
MySQL date function
Activit fragmented deadly pit
Activiti目录(三)部署流程、发起流程
集成开发管理平台
JVM之垃圾回收器下篇
8086 CPU internal structure
手把手带你做强化学习实验--敲级详细
Jetpack compose 1.1 release, based on kotlin's Android UI Toolkit
Akamai 反混淆篇
肖申克的救赎有感
学习投资大师的智慧
SQL tuning notes