当前位置:网站首页>数据库笔记
数据库笔记
2022-07-01 06:27:00 【一条小咸鱼i】
文章目录
1、同列属性值大小写区分问题
当三个记录b_author属性值分别设置为 ab,AB,Ab,使用
delet from book where b_author=‘AB’
表中的三个记录都被删了。
原因:
mysql查询是不区分大小写的!这可真的是惊呆我了,虽然知道一般情况下,关键字是不区分大小写的,但是没想到连要查询的参数都是不区分大小写的!!再尝试下面的sql语句,果然还是一样的结果。
Mysql默认的字符检索策略:utf8_general_ci,表示不区分大小写;utf8_general_cs表示区分大小写,utf8_bin表示二进制比较,同样也区分大小写 。(注意:在Mysql5.6.10版本中,不支持utf8_genral_cs!!!!)
创建表时,直接设置表的collate属性为utf8_general_cs或者utf8_bin;如果已经创建表,则直接修改字段的Collation属性为utf8_general_cs或者utf8_bin。
2、MySQL 的“utf8mb4”是真正的“UTF-8”。MySQL 的“utf8”是一种“专属的编码”,它能够编码的 Unicode 字符并不多。
注意 ,utf8mb4与utf8的一个区别是前者可以存储墨迹表情。
3、between and 是包含两个边界的。
边栏推荐
- 虚幻 简单的屏幕雨滴后处理效果
- C语言课设学生选修课程系统(大作业)
- 【ManageEngine卓豪】网络运维管理是什么,网络运维平台有什么用
- Student attendance system for C language course (big homework)
- 【自动化运维】自动化运维平台有什么用
- 10 golang operator
- 【网络安全工具】USB控制软件有什么用
- Free trial of self-developed software noisecreater1.1
- Although pycharm is marked with red in the run-time search path, it does not affect the execution of the program
- 第五章 输入/输出(I/O)管理
猜你喜欢
![[enterprise data security] upgrade backup strategy to ensure enterprise data security](/img/59/e44c6533aa546e8854ef434aa64113.png)
[enterprise data security] upgrade backup strategy to ensure enterprise data security

C language course is provided with employee information management system (large operation)
![[unity shader amplify shader editor (ASE) Chapter 9]](/img/f5/f0f6786406e149187e71c8e12cde0d.png)
[unity shader amplify shader editor (ASE) Chapter 9]

【ManageEngine】如何实现网络自动化运维

【ManageEngine卓豪】网络运维管理是什么,网络运维平台有什么用

C语言课设图书信息管理系统(大作业)

【ITSM】什么是ITSM,IT部门为什么需要ITSM
![[unity shader ablation effect _ case sharing]](/img/e3/464f1cf426e8c03ce3d538ed9cf4bc.png)
[unity shader ablation effect _ case sharing]

【Unity Shader 消融效果_案例分享】
![[automatic operation and maintenance] what is the use of the automatic operation and maintenance platform](/img/14/756d566744d6e4a988a284c5b30130.png)
[automatic operation and maintenance] what is the use of the automatic operation and maintenance platform
随机推荐
Student attendance system for C language course (big homework)
[unity shader amplify shader editor (ASE) Chapter 9]
SQL中DML语句(数据操作语言)
做技术,自信不可或缺
ForkJoin和Stream流测试
C语言课设销售管理系统设计(大作业)
How does the port scanning tool help enterprises?
Application of IT service management (ITSM) in Higher Education
@Transactional的传播属性REQUIRES_NEW深入理解
C#如何打印輸出原版數組
VS2019如何永久配置本地OpenCV4.5.5使用
SQL学习笔记九种连接2
伪装请求头库: anti-useragent
Dongle data collection
SystemVerilog learning-06-class encapsulation
【#Unity Shader#自定义材质面板_第二篇】
给逆序对数求原数组
idea 好用插件汇总!!!
[ManageEngine Zhuohao] mobile terminal management solution, helping the digital transformation of Zhongzhou aviation industry
存储函数学习笔记