当前位置:网站首页>更新数据表update
更新数据表update
2022-07-31 15:12:00 【小刘学安卓】
修改记录的方式汇总:
1、设置为新值:
UPDATE table_name SET column_name=new_value [, column_name2=new_value2] [WHERE column_name3=value3]2、根据已有值替换:
UPDATE table_name SET key1=replace(key1, '查找内容', '替换成内容') [WHERE column_name3=value3]思维扩展:第二种方式不仅可用于整体替换,还能做子串替换,例如要实现将tag中所有的PYTHON替换为Python(如CPYTHON=>CPython),可写作:
UPDATE examination_info
SET tag = REPLACE(tag, "PYTHON", "Python")
WHERE tag LIKE "%PYTHON%";
边栏推荐
- Nuget打包并上传教程
- c语言hello world代码(代码编程入门)
- How to clean up the lodash.memoize cache in the element-plus virtual table virtual-list component?
- Synchronized和volatile 面试简单汇总
- Word table to Excel
- 使用 Chainlink Keepers 实现智能合约函数的自动化执行
- Ubuntu Topic 5: Setting a Static IP Address
- 使用 GraphiQL 可视化 GraphQL 架构
- Getting started with UnityShader (1) - GPU and Shader
- border控件的使用
猜你喜欢
随机推荐
Trigonometric identity transformation formula
json到底是什么(c# json)
浏览器自带的拾色器
OpenShift 4 - Customize RHACS security policies to prevent production clusters from using high-risk registry
QGIS 加载WMS数据,重新投影
使用 PyTorch 检测眼部疾病
名创优品斥资6.95亿购买创始人叶国富所持办公楼股权
力扣:56. 合并区间
Getting started with UnityShader (3) - Unity's Shader
R language test whether the sample conforms to normality (test whether the sample comes from a normally distributed population): shapiro.test function tests whether the sample conforms to the normal d
工程水文学名词解释总结
三、数组
为什么毕业季不要表白?
How useful is four-quadrant time management?
7、常见面试口语提问问题汇总
11 pinia使用
Matlab matrix basic operations (definition, operation)
TRACE32 - Common Operations
工程力学复习资料
NPM淘宝镜像(最新版本)于2021-11-21 16:53:52发布新版本npm镜像[通俗易懂]









