当前位置:网站首页>MySQL: the difference between insert ignore, insert and replace
MySQL: the difference between insert ignore, insert and replace
2022-07-01 23:45:00 【raoxiaoya】
| Instructions | Already exists | non-existent | give an example |
|---|---|---|---|
| insert | Report errors | Insert | insert into names(name, age) values(“ Xiao Ming ”, 23); |
| insert ignore | Ignore | Insert | insert ignore into names(name, age) values(“ Xiao Ming ”, 24); |
| replace | Replace | Insert | replace into names(name, age) values(“ Xiao Ming ”, 25); |
Table requirements : Yes PrimaryKey, perhaps unique Indexes
边栏推荐
- SWT / anr problem - SWT causes low memory killer (LMK)
- BlocProvider为什么感觉和Provider很相似?
- Know --matplotlib
- 2021 RoboCom 世界机器人开发者大赛-高职组复赛
- Similarities and differences between the defined identity execution function authid determiner and PostgreSQL in Oracle
- TS initial use, TS type
- 边缘计算概述
- Redis AOF日志
- Redis 主从同步
- ARP报文头部格式和请求流程
猜你喜欢

物联网应用技术专业是属于什么类

Matplotlib common settings

Practical application and extension of plain framework

ConcurrentSkipListMap——跳表原理

PostgreSQL source code (57) why is the performance gap so large in hot update?

Deep learning | three concepts: epoch, batch, iteration

2021 robocom world robot developer competition - preliminary competition of undergraduate group

2021 robocom world robot developer competition - semi finals of higher vocational group

字典、哈希表、数组的概念

. env. XXX file, with constant, but undefined
随机推荐
2021 robocom world robot developer competition - semi finals of higher vocational group
多表操作-一对一,一对多与多对多
Various global files related to [.Net core] program
Key points and difficulties of the course "information content security" at Harbin Institute of Technology
Why is PHP called hypertext preprocessor
[LeetCode] 最后一个单词的长度【58】
ConcurrentSkipListMap——跳表原理
SQL optimization
.env.xxx 文件,加了常量,卻undefined
The essence of software architecture
PyTorch学习记录
Behind sharing e-commerce: the spirit of CO creation, symbiosis, sharing, CO prosperity and win-win
mysql:insert ignore、insert和replace区别
Windows 7 install MySQL error: 1067
openwrt 开启KV漫游
const // It is a const object...class nullptr_t
E-commerce RPA robot helps brand e-commerce to achieve high traffic
哈工大《信息内容安全》课程知识要点和难点
JPA handwritten SQL, received with user-defined entity classes
使用 pair 做 unordered_map 的键值