当前位置:网站首页>mysql:insert ignore、insert和replace区别
mysql:insert ignore、insert和replace区别
2022-07-01 23:23:00 【raoxiaoya】
| 指令 | 已存在 | 不存在 | 举例 |
|---|---|---|---|
| insert | 报错 | 插入 | insert into names(name, age) values(“小明”, 23); |
| insert ignore | 忽略 | 插入 | insert ignore into names(name, age) values(“小明”, 24); |
| replace | 替换 | 插入 | replace into names(name, age) values(“小明”, 25); |
表要求:有PrimaryKey,或者unique索引
边栏推荐
- y53.第三章 Kubernetes从入门到精通 -- ingress(二六)
- 常见的积分商城游戏类型有哪些?
- URL introduction
- 为什么PHP叫超文本预处理器
- 小程序表单校验封装
- What professional classification does the application of Internet of things technology belong to
- Paramètres communs de matplotlib
- Redis data types and application scenarios
- [swoole Series 1] what will you learn in the world of swoole?
- Anomaly-Transformer (ICLR 2022 Spotlight)复现过程及问题
猜你喜欢

Redis master-slave synchronization

2022 examination questions and online simulation examination for safety management personnel of hazardous chemical business units

2022 R1 fast opening pressure vessel operation test questions and answers

Matplotlib常用設置

from pip._internal.cli.main import main ModuleNotFoundError: No module named ‘pip‘

Zhao Fuquan: to ensure supply in the short term, we should build a safe, efficient and resilient supply chain in the long term

从第三次技术革命看企业应用三大开发趋势

Redis数据类型和应用场景

What category does the Internet of things application technology major belong to

2022年R1快开门式压力容器操作考题及答案
随机推荐
【C#】依赖注入及Autofac
Paramètres communs de matplotlib
每日三题 6.30
JS - use of arguments
Daily three questions 6.29
2022 crane driver (limited to bridge crane) examination questions and simulation examination
从第三次技术革命看企业应用三大开发趋势
[must] bm41 output the right view of the binary tree [medium +]
Yunxin small class | common cognitive misunderstandings in IM and audio and video
Redis数据类型和应用场景
plain framework的实际应用和扩展
13 MySQL-约束
图的遍历之深度优先搜索和广度优先搜索
Notblank and notempty
Future trend and development of neural network Internet of things
每日三题 6.29
2022年危险化学品经营单位安全管理人员考试题及在线模拟考试
What is mosaic?
mt管理器测试滑雪大冒险
常见的积分商城游戏类型有哪些?