当前位置:网站首页>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
边栏推荐
- 使用uni-simple-router,动态传参 TypeError: Cannot convert undefined or null to object
- Redis 主从同步
- 2021 robocom world robot developer competition - preliminary competition of higher vocational group
- 物联网技术应用属于什么专业分类
- PyCharm调用matplotlib绘图时图像弹出问题怎么解决
- 字典、哈希表、数组的概念
- 【必会】BM41 输出二叉树的右视图【中等+】
- Depth first search and breadth first search of graph traversal
- The best smart home open source system in 2022: introduction to Alexa, home assistant and homekit ecosystem
- Use pair to do unordered_ Key value of map
猜你喜欢

Huawei HMS core joins hands with hypergraph to inject new momentum into 3D GIS

Commemorate becoming the first dayus200 tripartite demo contributor

Redis AOF log

Matplotlib common charts

Notes to problems - file /usr/share/mysql/charsets/readme from install of mysql-server-5.1.73-1 glibc23.x86_ 64 c

边缘计算概述

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

Overview of edge calculation

第六章 数据流建模

多表操作-一对一,一对多与多对多
随机推荐
How to display real-time 2D map after rviz is opened
SecurityUtils.getSubject().getPrincipal()为null的问题怎么解决
问题随记 —— /usr/bin/perl is needed by MySQL-server-5.1.73-1.glibc23.x86_64
在代码中使用SqlCommand对象
The best smart home open source system in 2022: introduction to Alexa, home assistant and homekit ecosystem
Postgresql源码(58)元组拼接heap_form_tuple剖析
PyCharm调用matplotlib绘图时图像弹出问题怎么解决
. env. XXX file, with constant, but undefined
from pip._internal.cli.main import main ModuleNotFoundError: No module named ‘pip‘
Distance measurement - Hamming distance
Concepts of dictionary, hash table and array
What category does the Internet of things application technology major belong to
How to realize parallel replication in MySQL replication
2021 robocom world robot developer competition - preliminary competition of undergraduate group
.env.xxx 文件,加了常量,卻undefined
The essence of software architecture
Using uni simple router, dynamically pass parameters typeerror: cannot convert undefined or null to object
13 MySQL-约束
Postgresql源码(57)HOT更新为什么性能差距那么大?
Is it safe to choose mobile phone for stock trading account opening in Shanghai?