当前位置:网站首页>MySQL learning notes - data type (2)
MySQL learning notes - data type (2)
2022-07-04 15:32:00 【Murshaw 756】
Catalog
10.1 BINARY and VARBINARY type
13、 Summary and selection suggestions
6、 Date and time type

6.1 YEAR type


6.2 DATE type


6.3 TIME type


6.4 DATATIME type


6.5 TIMESTAMP type


TIMESTAMP and DATATIME difference

6.6 Development experience

7、 Text string type


7.1 CHAR type

Be careful :1、 A Chinese only takes up one character , Three bytes
2、INSERT INTO test_char1(c1) VALUES('ab '); The spaces you add will also be removed from the trailing spaces .
7.2 VARCHAR type

How to choose CHAR perhaps VARCHAR

7.3 TEST type

Be careful :TEST When using type , The spaces you add will not be deleted , So in use SELECT CHAR_LENGTH(tx) FORM test_test; When , The length will add its own space
Development experience :

8、ENUM type


1、 Enum add ignore case
2、 You can use index ( Subscript ) Call enumeration elements
3、 There is no limit to non empty cases , You can add NULL
9、SET type


10、 Binary string type
10.1 BINARY and VARBINARY type



BINAR Fixed length , therefore LENGTH Is the specified length
10. 2 BLOB type


Blob Type can use resource type as variable . for example img, You can insert data manually
TEXT and BLOB Precautions for use of :

11、JSON type

12、 Type of space

13、 Summary and selection suggestions

additional :
边栏推荐
- mysql 联合主键_Mysql 创建联合主键[通俗易懂]
- Ffmpeg Visual Studio development (IV): audio decoding
- Hexadecimal form
- 干货 | fMRI标准报告指南新鲜出炉啦,快来涨知识吧
- MYSQL索引优化
- Analysis of nearly 100 million dollars stolen and horizon cross chain bridge attacked
- 从0到1建设智能灰度数据体系:以vivo游戏中心为例
- Decimal, exponential
- [learning notes] matroid
- 這幾年爆火的智能物聯網(AIoT),到底前景如何?
猜你喜欢

Deep learning neural network case (handwritten digit recognition)

中国主要城市人均存款出炉,你达标了吗?

Blood cases caused by Lombok use

MySQL学习笔记——数据类型(数值类型)

go-zero微服务实战系列(九、极致优化秒杀性能)

Dialogue with ye Yanxiu, senior consultant of Longzhi and atlassian certification expert: where should Chinese users go when atlassian products enter the post server era?

这几年爆火的智能物联网(AIoT),到底前景如何?

华为云数据库DDS产品深度赋能

开源人张亮的 17 年成长路线,热爱才能坚持

夜天之书 #53 Apache 开源社群的“石头汤”
随机推荐
Analysis of nearly 100 million dollars stolen and horizon cross chain bridge attacked
Halcon knowledge: NCC_ Model template matching
一篇文章学会GO语言中的变量
Shell programming basics
Go deep into the details of deconstruction and assignment of several data types in JS
They are all talking about Devops. Do you really understand it?
Unity预制件Prefab Day04
中国主要城市人均存款出炉,你达标了吗?
Unity脚本介绍 Day01
Unity update process_ Principle of unity synergy
Logstash~Logstash配置(logstash.yml)详解
Lombok使用引发的血案
C1 certification learning notes 3 -- Web Foundation
Align left and right!
Width accuracy
LeetCode 35. 搜索插入位置 —vector遍历(O(logn)和O(n)的写法---二分查找法)
c# 实现定义一套中间SQL可以跨库执行的SQL语句
Deep learning neural network case (handwritten digit recognition)
重排数组
unity update 协程_Unity 协程的原理