当前位置:网站首页>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
边栏推荐
- ShanDong Multi-University Training #3
- What professional classification does the application of Internet of things technology belong to
- 比较通俗易懂的PID理解
- Key points and difficulties of the course "information content security" at Harbin Institute of Technology
- 使用VB.net将PNG图片转成icon类型图标文件
- VIM color the catalogue
- PostgreSQL source code (57) why is the performance gap so large in hot update?
- 【ES实战】ES上的安全性运行方式
- cookie、session、tooken
- Is it safe to choose mobile phone for stock trading account opening in Shanghai?
猜你喜欢
Using uni simple router, dynamically pass parameters typeerror: cannot convert undefined or null to object
Various global files related to [.Net core] program
Redis AOF日志
How to solve the image pop-up problem when pycharm calls Matplotlib to draw
Linux基础 —— CentOS7 离线安装 MySQL
2022年最佳智能家居开源系统:Alexa、Home Assistant、HomeKit生态系统介绍
BlocProvider为什么感觉和Provider很相似?
Zero foundation tutorial of Internet of things development
Use pair to do unordered_ Key value of map
Use vb Net to convert PNG pictures into icon type icon files
随机推荐
Using uni simple router, dynamically pass parameters typeerror: cannot convert undefined or null to object
BlocProvider为什么感觉和Provider很相似?
const // It is a const object...class nullptr_t
使用VB.net将PNG图片转成icon类型图标文件
notBlank 和 notEmpty
algolia 搜索需求,做的快自闭了...
Leetcode (34) -- find the first and last positions of elements in a sorted array
PostgreSQL notes (10) dynamically execute syntax parsing process
const // It is a const object... class nullptr_ t
Huawei HMS core joins hands with hypergraph to inject new momentum into 3D GIS
mysql:insert ignore、insert和replace区别
力扣今日题-241. 为运算表达式设计优先级
PyTorch学习记录
Concepts of dictionary, hash table and array
Li Kou today's question -241 Design priorities for operational expressions
Oracle中已定义者身份执行函数AUTHID DEFINER与Postgresql行为的异同
Redis RDB snapshot
Yunxin small class | common cognitive misunderstandings in IM and audio and video
Using SqlCommand objects in code
问题随记 —— file /usr/share/mysql/charsets/README from install of MySQL-server-5.1.73-1.glibc23.x86_64 c