当前位置:网站首页>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 :
边栏推荐
- .Net之延迟队列
- Unity script API - GameObject game object, object object
- Redis publish and subscribe
- .Net 应用考虑x64生成
- 华为云数据库DDS产品深度赋能
- 对话龙智高级咨询顾问、Atlassian认证专家叶燕秀:Atlassian产品进入后Server时代,中国用户应当何去何从?
- Redis的4种缓存模式分享
- 干货 | fMRI标准报告指南新鲜出炉啦,快来涨知识吧
- 2022 financial products that can be invested
- Ffmpeg Visual Studio development (IV): audio decoding
猜你喜欢
音视频技术开发周刊 | 252
产品好不好,谁说了算?Sonar提出分析的性能指标,帮助您轻松判断产品性能及表现
What is the future of the booming intelligent Internet of things (aiot) in recent years?
lnx 高效搜索引擎、FastDeploy 推理部署工具箱、AI前沿论文 | ShowMeAI资讯日报 #07.04
夜天之书 #53 Apache 开源社群的“石头汤”
31年前的Beyond演唱会,是如何超清修复的?
这几年爆火的智能物联网(AIoT),到底前景如何?
数据湖治理:优势、挑战和入门
Building intelligent gray-scale data system from 0 to 1: Taking vivo game center as an example
2022年九大CIO趋势和优先事项
随机推荐
重排数组
flutter 报错 No MediaQuery widget ancestor found.
Who the final say whether the product is good or not? Sonar puts forward performance indicators for analysis to help you easily judge product performance and performance
Quelles sont les perspectives de l'Internet intelligent des objets (aiot) qui a explosé ces dernières années?
Blood cases caused by Lombok use
LeetCode 58. Length of the last word
对话龙智高级咨询顾问、Atlassian认证专家叶燕秀:Atlassian产品进入后Server时代,中国用户应当何去何从?
MP3是如何诞生的?
Width and alignment
Unity脚本生命周期 Day02
小数,指数
Unity脚本常用API Day03
LeetCode 58. 最后一个单词的长度
Weibo and Huya advance into interest communities: different paths for peers
Go zero micro service practical series (IX. ultimate optimization of seckill performance)
Guitar Pro 8win10 latest guitar learning / score / creation
Unity script introduction day01
The per capita savings of major cities in China have been released. Have you reached the standard?
十六进制
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?