当前位置:网站首页>Sqlite A列数据复制到B列
Sqlite A列数据复制到B列
2022-07-31 05:15:00 【为今天而努力】
测试数据:
alter table test add column_1 int;
insert into test (column_1) values(1),(2),(3);
实际操作:
// 添加新列
alter table test add column_2 int;
update test set column_2 = column_1; // 将column_1的数据 copy 到 column_2;
// 重置原有列数据。
update test set column_1 = 0;
大功告成!!!
边栏推荐
- About integrating superset into your own project
- 一个简单的bash转powershell案例
- [Ubuntu20.04 installs MySQL and MySQL-workbench visualization tool]
- flutter 混合开发 module 依赖
- quick-3.5 ActionTimeline的setLastFrameCallFunc调用会崩溃问题
- C语言 | 获取字符串里逗号间隔的内容
- Linux修改MySQL数据库密码
- Fragmented NFT (Fractional NFT)
- CMOS管原理,及其在推挽电路中的应用
- 场效应管 | N-mos内部结构详解
猜你喜欢
随机推荐
Linux修改MySQL数据库密码
腾讯云轻量服务器删除所有防火墙规则
碎片化NFT(Fractional NFT)
this指向问题
Yuan prospect and four track of the universe
sql 外键约束【表关系绑定】
Digital twins will be an important way to enter the "metaverse"
js中流程控制语句
CMOS管原理,及其在推挽电路中的应用
MySQL-如何分库分表?一看就懂
MySQL压缩包方式安装,傻瓜式教学
Powershell中UTF-8环境中文乱码解决办法
常见JVM面试题及答案整理
On the side of Ali, tell me what are the application scenarios of message middleware you know?
利用phpstudy搭建DVWA
Error: Cannot find module 'D:\Application\nodejs\node_modules\npm\bin\npm-cli.js'
[Ubuntu20.04 installs MySQL and MySQL-workbench visualization tool]
sqlmap injection tutorial common commands
Understanding SSRF, this article is enough
一个简单的bash转powershell案例









