当前位置:网站首页>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!!!
边栏推荐
猜你喜欢
对js的数组的理解
What is GameFi?
[JVM Loading]---Class Loading Mechanism
unicloud 云开发记录
Hyper-V新建虚拟机注意事项
For penetration testing methods where the output point is a timestamp (take Oracle database as an example)
为什么bash中的read要配合while才能读取/dev/stdin的内容
feign调用不通问题,JSON parse error Illegal character ((CTRL-CHAR, code 31)) only regular white space (r
为什么redis是单线程还那么快?
动态规划(一)| 斐波那契数列和归递
随机推荐
quick-3.5 ActionTimeline的setLastFrameCallFunc调用会崩溃问题
小白学爬虫——爬虫入门
cocos2d-x-3.2创建项目方法
quick-3.5 lua调用c++
flutter arr dependencies
podspec 校验依赖出错问题 pod lib lint ,需要指定源
The server time zone value ‘й‘ is unrecognized or represents more than one time zone
Attribute Changer的几种形态
configure:error no SDL library found
C language tutorial (2) - printf and data types that come with c
Why does read in bash need to cooperate with while to read the contents of /dev/stdin
什么是EVM兼容链?
js中的break与continue退出
C language tutorial (1) - preparation
podspec自动化升级脚本
Why is the redis single-threaded also so fast?
mysql常用命令
为什么redis是单线程还那么快?
计网 Packet Tracer仿真 | 简单易懂集线器和交换机对比(理论+仿真)
feign调用不通问题,JSON parse error Illegal character ((CTRL-CHAR, code 31)) only regular white space (r