当前位置:网站首页>Database notes
Database notes
2022-07-01 06:33:00 【A small salted fish I】
List of articles
1、 Case sensitivity of attribute values in the same column
When three records b_author Property values are set to ab,AB,Ab, Use
delet from book where b_author=‘AB’
Three records in the table have been deleted .
reason :
mysql Queries are case insensitive ! This really shocked me , Although I know that generally , Keywords are case insensitive , But I didn't expect that even the parameters to be queried are case insensitive !! Try the following sql sentence , Sure enough, the result is the same .
Mysql Default character retrieval strategy :utf8_general_ci, Indicates case insensitive ;utf8_general_cs Means case sensitive ,utf8_bin Represents a binary comparison , Also case sensitive .( Be careful : stay Mysql5.6.10 In the version , I won't support it utf8_genral_cs!!!!)
Create table time , Set the table directly collate The attribute is utf8_general_cs perhaps utf8_bin; If you have created a table , Then directly modify the Collation The attribute is utf8_general_cs perhaps utf8_bin.
2、MySQL Of “utf8mb4” It's true. “UTF-8”.MySQL Of “utf8” It's a kind of “ Exclusive code ”, It can code Unicode There are not many characters .
Be careful ,utf8mb4 And utf8 One difference is that the former can store ink expressions .
mysql The coding utf-8 and utf8mb4 difference
3、between and It contains two boundaries .
边栏推荐
猜你喜欢

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

C语言课设图书信息管理系统(大作业)
![[network security tool] what is the use of USB control software](/img/cc/20fc1f35c139c52c5922727368b835.png)
[network security tool] what is the use of USB control software

C language course set up property fee management system (big work)

To sort out the anomaly detection methods, just read this article!

【微信小程序】如何搭积木式开发?

Excel visualization
![[postgraduate entrance examination advanced mathematics Wu Zhongxiang +880 version for personal use] advanced mathematics Chapter II Basic Stage mind map](/img/c0/299a406efea51f24b1701b66adc1e3.png)
[postgraduate entrance examination advanced mathematics Wu Zhongxiang +880 version for personal use] advanced mathematics Chapter II Basic Stage mind map

【微信小程序】一文解决button、input、image组件
![[unity shader ablation effect _ case sharing]](/img/e3/464f1cf426e8c03ce3d538ed9cf4bc.png)
[unity shader ablation effect _ case sharing]
随机推荐
软件工程领域的名词描述
Mysql 表分区创建方法
VS2019如何永久配置本地OpenCV4.5.5使用
[unity shader ablation effect _ case sharing]
Chapitre V gestion des entrées / sorties
[summary of problem thinking] Why is the register reset performed in user mode?
数据库对象:视图学习记录
2022 Jiangsu Vocational College skills competition (secondary vocational school) network construction and application open competition volume
What is a port scanning tool? What is the use of port scanning tools
HW(OD)岗面试题
Forkjoin and stream flow test
谷粒商城-环境(p1-p27)
[enterprise data security] upgrade backup strategy to ensure enterprise data security
Discrimination between left and right limits of derivatives and left and right derivatives
[unity shader custom material panel part I]
PAT (Advanced Level) Practice 1057 Stack
[wechat applet] to solve button, input and image components
【微信小程序】如何搭积木式开发?
Lxml module (data extraction)
[ManageEngine Zhuohao] use unified terminal management to help "Eurex group" digital transformation