当前位置:网站首页>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
边栏推荐
- Redis AOF日志
- Is it safe to choose mobile phone for stock trading account opening in Shanghai?
- 有没有一段代码,让你为人类的智慧所折服
- Is it safe to buy funds on Great Wall Securities?
- [C #] dependency injection and Autofac
- Behind sharing e-commerce: the spirit of CO creation, symbiosis, sharing, CO prosperity and win-win
- Matplotlib common charts
- Various global files related to [.Net core] program
- .env.xxx 文件,加了常量,却undefined
- 股票开户哪个证券公司最好,有安全保障吗
猜你喜欢

RPA教程01:EXCEL自动化从入门到实操

Is there a piece of code that makes you convinced by human wisdom

ARP message header format and request flow

MT manager test skiing Adventure

Know --matplotlib

Algolia's search needs are almost closed

Redis AOF日志

Zero foundation tutorial of Internet of things development

使用uni-simple-router,动态传参 TypeError: Cannot convert undefined or null to object

Commemorate becoming the first dayus200 tripartite demo contributor
随机推荐
字典、哈希表、数组的概念
E-commerce RPA robot helps brand e-commerce to achieve high traffic
Using uni simple router, dynamically pass parameters typeerror: cannot convert undefined or null to object
cookie、session、tooken
Redis RDB快照
华为HMS Core携手超图为三维GIS注入新动能
Yunxin small class | common cognitive misunderstandings in IM and audio and video
Matplotlib common settings
常见的积分商城游戏类型有哪些?
Deep learning | three concepts: epoch, batch, iteration
De PIP. Interne. CLI. Main Import main modulenotfounderror: No module named 'PIP'
JPA handwritten SQL, received with user-defined entity classes
Chapter 6 data flow modeling
.env.xxx 文件,加了常量,卻undefined
How to display real-time 2D map after rviz is opened
Behind sharing e-commerce: the spirit of CO creation, symbiosis, sharing, CO prosperity and win-win
Overview of edge calculation
PostgreSQL source code (57) why is the performance gap so large in hot update?
Leetcode (34) -- find the first and last positions of elements in a sorted array
Future trend and development of neural network Internet of things