当前位置:网站首页>oracle迁移mysql唯一索引大小写不区分别怕
oracle迁移mysql唯一索引大小写不区分别怕
2022-06-27 19:23:00 【高粱】
项目要从oracle迁移mysql 发现 mysql的唯一索引不区分大小写, 会报错
错误代码: 1062
Duplicate entry '8a84cc20713c2a570171bfb3515e5fb6' for key 'PM_SIN_PROJECT_INFO.PRIMARY'
有两种解决方案
在创建表的时候在该字段加唯一索引,binary是为了英文区分大小写
`ID_NO` VARCHAR(32) BINARY NOT NULL COMMENT '注释',
COLLATE 改变成utf8mb4_bin
ENGINE = INNODB CHARACTER SET = utf8mb4 COLLATE = utf8mb4_bin
边栏推荐
- 通过CE修改器修改大型网络游戏
- 抖音的兴趣电商已经碰到流量天花板?
- 划重点!国产电脑上安装字体小技巧
- Covering access to 2w+ traffic monitoring equipment, EMQ creates a new digital engine for all elements of traffic in Shenzhen
- The difference between scrum and Kanban
- 系统自带的karsonzhang/fastadmin-addons报错
- Wechat applet based service management system for college party members' Home System applet graduation design, Party members, activists, learning, punch in, forum
- Is it safe to open an account and buy stocks? Who knows
- Go從入門到實戰——接口(筆記)
- 2021全球独角兽榜发布:中国301家独角兽企业全名单来了!
猜你喜欢

Experience Navicat premium 16, unlimited reset, 14 day trial method (with source code)

AI 绘画极简教程

SQL必需掌握的100个重要知识点:排序检索数据

图解基于AQS队列实现的CountDownLatch和CyclicBarrier

Go从入门到实战——CSP并发机制(笔记)

非常全面的DolphinScheduler(海豚调度)安装使用文档

Go从入门到实战——package(笔记)

Educational Codeforces Round 108 (Rated for Div. 2)

数据平台调度升级改造 | 从Azkaban 平滑过度到Apache DolphinScheduler 的操作实践

Codeforces Round #719 (Div. 3)
随机推荐
Go从入门到实战——依赖管理(笔记)
Animal breeding production virtual simulation teaching system | Sinovel interactive
Golang 使用正则来匹配出子字符串函数
Go from introduction to actual combat - panic and recover (notes)
安装gatewayworker之后启动start.php
Go从入门到实战——channel的关闭和广播(笔记)
Day8 ---- 云资讯项目介绍与创建
MySQL client tools are recommended. I can't imagine that it is best to use Juran
SQL必需掌握的100个重要知识点:排序检索数据
数据平台调度升级改造 | 从Azkaban 平滑过度到Apache DolphinScheduler 的操作实践
VMware vSphere ESXi 7.0安装教程
MYSQL 性能优化 index 函数,隐藏,前缀,hash 索引 使用方法(2)
Go从入门到实战—— 多路选择和超时控制(笔记)
KDD 2022 | graph neural network generalization framework under the paradigm of "pre training, prompting and fine tuning"
于文文、胡夏等明星带你玩转派对 皮皮APP点燃你的夏日
Love number experiment | Issue 7 - Financial Crisis Analysis Based on random forest
SQL Server for循环用法
AI 绘画极简教程
Share an experience of self positioning + problem solving
Show the comprehensive strength of strong products, and make the first show of 2022 Lincoln aviator in Southwest China