当前位置:网站首页>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
边栏推荐
- This wechat plug-in is very easy to use
- OSS direct upload rails service practice
- 数据库高级学习笔记--对象类型
- How to learn so many conceptual things in database? Seeking method
- NET 3行代码实现文字转语音功能
- Inside database system distributed system
- 高温持续,公交企业开展安全专项培训
- Software testing and quality learning notes 2 - black box testing
- 2022-7-27周报
- 可以伸缩的搜索栏,模仿华为应用市场
猜你喜欢

超级原始人系列盲盒即将上线,PlatoFarm赋能超多权益

Opencv installation configuration test

matlab基本操作

The secret behind three salary increases a year
Edge团队详解如何通过磁盘缓存压缩技术提升综合性能体验

Net 3 lines of code to realize the function of text to speech

TCP 基础知识

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

Machine learning (10) -- hypothesis testing and regression analysis

C# 倒计时工具
随机推荐
NET 3行代码实现文字转语音功能
This wechat plug-in is very easy to use
LinkedList内部原理解析
如何使用JWT进行身份验证与授权
JS array is de duplicated, the ID is the same, and a value is added and merged
478-82(56、128、718、129)
MATLAB启动慢解决措施
OpenAtom OpenHarmony分论坛,今天14:00见!附大事记精彩发布
EvaluatorFilter简介说明
HashSet内部原理解析
总线相关概念集合
MySQL中各类型文件详解
[log] what does a log do? What is a log factory? Configuration and use of log4j? log4j. Properties file configuration, log4j jar package coordinates
Sequence and limit operation of MATLAB
How view works
Buckle 376 swing sequence greedy
Window源码解析(三):Window的更新机制
ES6新特性
Plato Farm-以柏拉图为目标的农场元宇宙游戏
Standing on the shoulders of big men, you can see further