当前位置:网站首页>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;
大功告成!!!
边栏推荐
- NFT:数字所有权的核心
- Powershell中UTF-8环境中文乱码解决办法
- Take you to understand the MySQL isolation level, what happens when two transactions operate on the same row of data at the same time?
- File operations in C language (1)
- 【JVM加载】---类加载机制
- [Cloud native] Ribbon is no longer used at the bottom layer of OpenFeign starting from the 2020.0.X version
- Xiaobai learns reptiles - introduction to reptiles
- 【云原生】SQL(及存储过程)跑得太慢怎么办?
- mysql启动报错The server quit without updating PID file几种解决办法
- Oracle数据库中的“limit”查询
猜你喜欢
随机推荐
Error: Cannot find module ‘D:\Application\nodejs\node_modules\npm\bin\npm-cli.js‘
Oracle数据库中的“limit”查询
Redis:简单实用
【云原生】SQL(及存储过程)跑得太慢怎么办?
NFTs: The Heart of Digital Ownership
Xiaobai learns reptiles - introduction to reptiles
数字取证autopsy工具用法
数据库 | SQL增删改查基础语法
MySQL高级学习笔记
正则表达式基础知识
Memcached :安装
Regular Expression Basics
cocos2d-x 实现跨平台的目录遍历
Access数据库的查询
2021美赛C题M奖思路
腾讯云轻量服务器删除所有防火墙规则
年终总结——岁月静好~
How MySQL - depots table?A look at will understand
在kali上搭建vulhub漏洞靶场
On the side of Ali, tell me what are the application scenarios of message middleware you know?








