当前位置:网站首页>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
边栏推荐
猜你喜欢

JS提升:实现flat平铺的底层原理

OpenAtom OpenHarmony分论坛,今天14:00见!附大事记精彩发布

C# 倒计时工具

初学C#必须要掌握的基础例题
![[Guangxi University] information sharing of postgraduate entrance examination and re examination](/img/25/e35de6b9d803c9a80e0d2816aaad87.jpg)
[Guangxi University] information sharing of postgraduate entrance examination and re examination

Use xposed to crack the software

Detailed explanation of various types of files in MySQL

软件测试与质量学习笔记1---黑盒测试

领域事件和集成事件没那么高大上

MQ learning
随机推荐
Mock.js
SeekTiger生态通证STI 新进展,4月14日登录 ZB
Common tool functions are constantly updated
Go language slice vs array panic runtime error index out of range problem solving
Use xposed to crack the software
PHP 获取接口的方式
C# 读写文件从用户态切到内核态,到底是个什么流程?
哪些字符串会被FastJson解析为null呢?
OSS direct upload rails service practice
MQ learning
数据库高级学习笔记--游标
TimeBasedRollingPolicy简介说明
3分钟告诉你如何成为一名黑客|零基础到黑客入门指南,你只需要掌握这五点能力
ARouter源码解析(三)
数据库高级学习笔记--对象类型
The high temperature continues, and public transport enterprises carry out special safety training
居家健康诊断时代下,Senzo打造增强侧向流测试产品
PlatoFarm几大创新经济模型,给予当下元宇宙市场的启发
刚获融资的Espresso Systems,知识产权与团队道德双双陷入困境
ASP.NET Core 6框架揭秘实例演示[29]:搭建文件服务器