当前位置:网站首页>Today, I want to talk about the data types of MySQL database
Today, I want to talk about the data types of MySQL database
2022-07-28 09:53:00 【MountainYanYL】
# Numeric class type
int Normal integer size int(10) # It is often used to store self incrementing ID, as well as linux Time stamp
tinyint tinyint(1) # It is often used to store status values
float float(10) # Single precision floating point data
double double(10) # Double precision floating point data
decimal decimal(10,2) # Fixed point decimals Format 0.22,
----------------------------------
# Date or time type
year # Format YYYY Such as 2017 , year Range :1901-2155
date # date YYYY-MM-DD Such as 2019-02-27 1000-01-01~9999-12-3
time # Time HH:MM:SS Such as 12:25:36
datetime # Date time YYYY-MM-DD HH:MM:SS Such as :2019-10-21 12:33:33
timestamp # Date time YYYY-MM-DD HH:MM:SS
# character string
char # Fixed length
varchar # Indefinite length
text # Text
## In terms of efficiency char Higher
边栏推荐
- MATLAB启动慢解决措施
- HashSet内部原理解析
- Shell implements the backup / recovery / migration functions of harbor v1/v2
- ECCV 2022 | can be promoted without fine adjustment! Registration based anomaly detection framework for small samples
- The high temperature continues, and public transport enterprises carry out special safety training
- SQL Server、MySQL主从搭建,EF Core读写分离代码实现
- The secret behind three salary increases a year
- Window source code analysis (II): the adding mechanism of window
- Arouter source code analysis (I)
- 数据库高级学习笔记--存储函数
猜你喜欢

C# 倒计时工具

极致通缩和永动机模型,将推动 PlatoFarm 爆发

The maximum recommended number of rows for MySQL is 2000W. Is it reliable?

MQ learning

My vivado practice - single cycle CPU instruction analysis

Software testing and quality learning notes 2 - black box testing

就这么一个简单的校验,80%的程序员却做不到,更不理解!

JS提升:实现flat平铺的底层原理
![ASP.NET Core 6框架揭秘实例演示[29]:搭建文件服务器](/img/90/40869d7c03f09010beb989af07e2f0.png)
ASP.NET Core 6框架揭秘实例演示[29]:搭建文件服务器

478-82(56、128、718、129)
随机推荐
力扣376-摆动序列——贪心
Edge团队详解如何通过磁盘缓存压缩技术提升综合性能体验
居家健康诊断时代下,Senzo打造增强侧向流测试产品
Common tool functions are constantly updated
Scalable search bar, imitating Huawei application market
数据库高级学习笔记--对象类型
这款微信插件太好用了
2022-7-27周报
NET 3行代码实现文字转语音功能
PHP 获取接口的方式
老板:公司系统太多,能不能实现账号互通?
View的工作原理
[collection] linear algebra let me think - Summary of chapter topics
【日志】日志干什么的?日志工厂是什么?log4j 的配置和使用? log4j.properties 文件配置、log4j jar包坐标
[Guangxi University] information sharing of postgraduate entrance examination and re examination
ARouter源码解析(一)
go语言切片Slice和数组Array对比panic runtime error index out of range问题解决
Translation recommendation | debugging bookkeeper protocol - unbounded ledger
高温持续,公交企业开展安全专项培训
C form application uses object binding DataGridView data binding