当前位置:网站首页>数据库笔记
数据库笔记
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 是包含两个边界的。
边栏推荐
- How did ManageEngine Zhuohao achieve the goal of being selected into Gartner Magic Quadrant for four consecutive years?
- SystemVerilog learning-07-class inheritance and package use
- [unity shader custom material panel part I]
- [summary of problem thinking] Why is the register reset performed in user mode?
- SystemVerilog learning-06-class encapsulation
- Minio error correction code, construction and startup of distributed Minio cluster
- VS2019如何永久配置本地OpenCV4.5.5使用
- High order binary balanced tree
- JSON module
- 自开发软件NoiseCreater1.1版本免费试用
猜你喜欢

【自动化运维】自动化运维平台有什么用

端口扫描工具对企业有什么帮助?

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

FPGA - clocking -02- clock wiring resources of internal structure of 7 Series FPGA

Free trial of self-developed software noisecreater1.1

sci-hub如何使用

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

HCM Beginner (III) - quickly enter pa70 and pa71 to browse employee information PA10

Teach you how to implement a deep learning framework
![[unity shader amplify shader editor (ASE) Chapter 9]](/img/f5/f0f6786406e149187e71c8e12cde0d.png)
[unity shader amplify shader editor (ASE) Chapter 9]
随机推荐
Camouflage request header Library: Anti useragent
[ManageEngine Zhuohao] mobile terminal management solution, helping the digital transformation of Zhongzhou aviation industry
Student attendance system for C language course (big homework)
[ManageEngine Zhuohao] the role of LAN monitoring
ManageEngine Zhuohao helps you comply with ISO 20000 standard (IV)
【Unity Shader 消融效果_案例分享】
[unity shader ablation effect _ case sharing]
[ManageEngine] how to realize network automatic operation and maintenance
Internet worm
Although pycharm is marked with red in the run-time search path, it does not affect the execution of the program
[ITSM] what is ITSM and why does it department need ITSM
HDU - 1501 zipper (memory deep search)
HCM Beginner (II) - information type
C language course is provided with employee information management system (large operation)
SQL中DML语句(数据操作语言)
DSBridge
【ITSM】什么是ITSM,IT部门为什么需要ITSM
DML statement in SQL (data operation language)
libpng12.so. 0: cannot open shared object file: no such file or directory
C语言课设学生考勤系统(大作业)