当前位置:网站首页>update data table update
update data table update
2022-07-31 15:21:00 【XiaoLiuXue android】
Summary of ways to modify records:
1. Set to new value:
UPDATE table_name SET column_name=new_value [, column_name2=new_value2] [WHERE column_name3=value3]
2. Replace according to the existing value:
UPDATE table_name SET key1=replace(key1, 'find content', 'replace with content') [WHERE column_name3=value3]
Thinking expansion: The second method can be used not only for overall replacement, but also for substring replacement. For example, to replace all PYTHON in a tag with Python (such as CPYTHON=>CPython), you can write:
UPDATE examination_infoSET tag = REPLACE(tag, "PYTHON", "Python")WHERE tag LIKE "%PYTHON%";
边栏推荐
- radiobutton的使用
- DBeaver连接MySQL 8.x时Public Key Retrieval is not allowed 错误解决
- Word表格转到Excel中
- Deployment application life cycle and Pod health check
- Tencent Cloud Deployment----DevOps
- 数据库的范式(第一范式,第二范式,第三范式,BCNF范式)「建议收藏」
- 分成两栏后文字顺序混乱的问题解决【写期刊论文时】
- Ubantu专题5:设置静态ip地址
- QGIS 加载WMS数据,重新投影
- Female service community product design
猜你喜欢
随机推荐
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
Unity中实现点选RenderTexture中的3D模型
工程水文学复习资料
Web自动化实战——Selenium4(自动化测试环境的搭建)
Linux查看redis版本(查看mongodb版本)
what exactly is json (c# json)
mongo enters error
R语言向前或者向后移动时间序列数据(自定义滞后或者超前的期数):使用dplyr包中的lag函数将时间序列数据向前移动一天(设置参数n为正值)
使用 Chainlink Keepers 实现智能合约函数的自动化执行
RecyclerView的高效使用第一节
[CUDA study notes] First acquaintance with CUDA
最小费用最大流问题详解
TRACE32 - SNOOPer-based variable logging
力扣:56. 合并区间
Matlab矩阵基本操作(定义,运算)
AVH Deployment Practice (1) | Deploying the Flying Paddle Model on Arm Virtual Hardware
STM32(十)------- SPI通信
leetcode303 Weekly Match Replay
TextBlock控件入门基础工具使用用法,取上法入门
Public Key Retrieval is not allowed error solution when DBeaver connects to MySQL 8.x