当前位置:网站首页>更新数据表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%";
边栏推荐
- The role of /etc/profile, /etc/bashrc, ~/.bash_profile, ~/.bashrc files
- Efficient use of RecyclerView Section 3
- R language ggplot2 visualization: use the ggmapplot function of the ggpubr package to visualize the MA plot (MA-plot), the font.legend parameter and the font.main parameter to set the title and legend
- Selenium自动化中无头浏览器的应用
- Word表格转到Excel中
- The R language ggstatsplot package ggbarstats function visualizes bar charts, and adds hypothesis test results (including sample number, statistics, effect size and its confidence interval, significan
- 易驱线主控芯片对比(电动三轮电机90O瓦世纪通达)
- Destruction order of thread_local variables
- leetcode303场周赛复盘
- TRACE32——常用操作
猜你喜欢

工程力学复习资料

mongo进入报错

自适应控制——仿真实验二 用Narendra方案设计模型参考自适应系统

Message queue data storage MySQL table design

Getting started with UnityShader (3) - Unity's Shader

TRACE32 - Common Operations

「秋招系列」MySQL面试核心25问(附答案)

LeetCode二叉树系列——222.完全二叉树的节点个数
![[CUDA study notes] First acquaintance with CUDA](/img/a2/f322ebe9dc483028f68882ee2c866b.png)
[CUDA study notes] First acquaintance with CUDA

leetcode303 Weekly Match Replay
随机推荐
R语言ggplot2可视化:使用ggpubr包的ggboxplot函数可视化分组箱图、使用ggpar函数改变图形化参数(legend、修改可视化图像的图例在整图中的位置)
TextBlock控件入门基础工具使用用法,取上法入门
R语言ggstatsplot包ggbarstats函数可视化条形图、并添加假设检验结果(包含样本数、统计量、效应大小及其置信区间、显著性、组间两两比较、贝叶斯假设)、检验结果报告符合APA标准
TRACE32——常用操作
Why don't you make a confession during the graduation season?
OpenShift 4 - Customize RHACS security policies to prevent production clusters from using high-risk registry
蔚来杯2022牛客暑期多校训练营4
RecyclerView高效使用第二节
三、数组
Gorm—Go language database framework
Essential Learning for Getting Started with Unity Shader - Transparency Effect
Efficient use of RecyclerView Section 3
Efficient use of RecyclerView Section 1
基于极限学习机(ELM)进行多变量用电量预测(Matlab代码实现)
工程流体力学复习
做事软件开发-法的重要性所在以及合理结论的认识
The meaning of node_exporter performance monitoring information collection in Prometheus
Nuget打包并上传教程
使用 GraphiQL 可视化 GraphQL 架构
thread_local 变量的析构顺序