当前位置:网站首页>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 :
边栏推荐
- What is the future of the booming intelligent Internet of things (aiot) in recent years?
- [learning notes] matroid
- . Net applications consider x64 generation
- Weibo and Huya advance into interest communities: different paths for peers
- 【读书会第十三期】视频文件的编码格式
- Understand Alibaba cloud's secret weapon "dragon architecture" in the article "science popularization talent"
- 在芯片高度集成的今天,绝大多数都是CMOS器件
- PXE网络
- 压力、焦虑还是抑郁? 正确诊断再治疗
- Helix swarm Chinese package is released, and perforce further improves the user experience in China
猜你喜欢
Blood cases caused by Lombok use
Deep learning network regularization
Huawei cloud database DDS products are deeply enabled
Neuf tendances et priorités du DPI en 2022
这几年爆火的智能物联网(AIoT),到底前景如何?
[differential privacy and data adaptability] differential privacy code implementation series (XIV)
MP3是如何诞生的?
干货 | fMRI标准报告指南新鲜出炉啦,快来涨知识吧
C1 certification learning notes 3 -- Web Foundation
Weekly recruitment | senior DBA annual salary 49+, the more opportunities, the closer success!
随机推荐
一篇文章学会GO语言中的变量
Unity script lifecycle day02
Unity预制件Prefab Day04
LeetCode 35. Search the insertion position - vector traversal (O (logn) and O (n) - binary search)
Weekly recruitment | senior DBA annual salary 49+, the more opportunities, the closer success!
数据库函数的用法「建议收藏」
暑期复习,一定要避免踩这些坑!
Nine CIO trends and priorities in 2022
Implementation of web chat room
C1 certification learning notes 3 -- Web Foundation
[learning notes] matroid
MySQL学习笔记——数据类型(2)
直播预告 | PostgreSQL 内核解读系列第二讲:PostgreSQL 体系结构
Deep learning network regularization
文本挖掘工具的介绍[通俗易懂]
Unity脚本API—Time类
LeetCode 1184. Distance between bus stops -- vector clockwise and counterclockwise
案例分享|金融业数据运营运维一体化建设
Lombok使用引发的血案
数据湖治理:优势、挑战和入门