当前位置:网站首页>Sqlite column A data is copied to column B
Sqlite column A data is copied to column B
2022-07-31 05:59:00 【work hard for today】
Test data:
alter table test add column_1 int;
insert into test (column_1) values(1),(2),(3);
Actual operation:
// Add a new column
alter table test add column_2 int;
update test set column_2 = column_1; // Copy the data of column_1 to column_2;
// Reset the original column data.
update test set column_1 = 0;
You're done!!!
边栏推荐
猜你喜欢

MySql to create data tables

【JVM加载】---类加载机制

最新MySql安装教学,非常详细

Linux中mysql密码修改方法(亲测可用)

Linux modify MySQL database password

【云原生】SQL(及存储过程)跑得太慢怎么办?

DeFi Token in the project management
![[Cloud native] Open source data analysis SPL easily copes with T+0](/img/89/4a96358956782ef9dacf0b700b54c3.png)
[Cloud native] Open source data analysis SPL easily copes with T+0

Error: Cannot find module 'D:\Application\nodejs\node_modules\npm\bin\npm-cli.js'

npm WARN config global `--global`, `--local` are deprecated. Use `--location解决方案
随机推荐
cocos2d-x 实现跨平台的目录遍历
一文速学-玩转MySQL获取时间、格式转换各类操作方法详解
Access database query
cocos2d-x-3.2创建项目方法
[Ubuntu20.04 installs MySQL and MySQL-workbench visualization tool]
[Cloud native] Open source data analysis SPL easily copes with T+0
podspec自动化升级脚本
Artifact SSMwar exploded Error deploying artifact.See server log for details
Digital twins will be an important way to enter the "metaverse"
微信小程序启动优化
jenkins +miniprogram-ci 一键上传微信小程序
一个简单的bash转powershell案例
[Cloud native] Ribbon is no longer used at the bottom layer of OpenFeign starting from the 2020.0.X version
Tencent Cloud Lightweight Server deletes all firewall rules
sqlite 查看表结构 android.database.sqlite.SQLiteException: table splitTable has no column named
[Cloud native] Simple introduction and use of microservice Nacos
Filter out egrep itself when using ps | egrep
常见JVM面试题及答案整理
对js的数组的理解
The latest MySql installation teaching, very detailed