当前位置:网站首页>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
边栏推荐
- Know --matplotlib
- Daily three questions 6.30
- const // It is a const object...class nullptr_t
- How to solve the image pop-up problem when pycharm calls Matplotlib to draw
- Zero foundation tutorial of Internet of things development
- 问题随记 —— /usr/bin/perl is needed by MySQL-server-5.1.73-1.glibc23.x86_64
- ADO.NET 之sqlConnection 对象使用摘要
- Reproduction process and problems of analog transformer (ICLR 2022 Spotlight)
- Windows 7 安装MYSQL 错误:1067
- Switch to software testing, knowing these four points is enough!
猜你喜欢
TS initial use, TS type
2021 RoboCom 世界机器人开发者大赛-高职组初赛
What category does the Internet of things application technology major belong to
Notes on problems - /usr/bin/perl is needed by mysql-server-5.1.73-1 glibc23.x86_ sixty-four
RPA教程01:EXCEL自动化从入门到实操
The essence of software architecture
notBlank 和 notEmpty
Kubernetes resource object introduction and common commands (III)
E-commerce RPA robot helps brand e-commerce to achieve high traffic
Redis AOF日志
随机推荐
BlocProvider为什么感觉和Provider很相似?
【必会】BM41 输出二叉树的右视图【中等+】
Y53. Chapter III kubernetes from introduction to mastery -- ingress (26)
边缘计算概述
VIM color the catalogue
【ES实战】ES上的安全性运行方式
Concurrentskiplistmap -- principle of table skipping
PyTorch学习记录
Commemorate becoming the first dayus200 tripartite demo contributor
Deep learning | three concepts: epoch, batch, iteration
- Oui. Env. Fichier XXX, avec constante, mais non spécifié
The third part of the construction of the defense system of offensive and defensive exercises is the establishment of a practical security system
【无标题】
有没有一段代码,让你为人类的智慧所折服
How excel opens CSV files with more than one million lines
比较通俗易懂的PID理解
Postgresql源码(58)元组拼接heap_form_tuple剖析
Know --matplotlib
Li Kou today's question -241 Design priorities for operational expressions
力扣今日题-241. 为运算表达式设计优先级