当前位置:网站首页>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;
大功告成!!!
边栏推荐
- kotlin 插件更新到1.3.21
- 自定dialog 布局没有居中解决方案
- vulhub靶场学习日记SickOs1.2
- 使用ps | egrep时过滤排除掉egrep自身
- mysql password modification method in Linux (pro-test available)
- The MySQL database in Alibaba Cloud was attacked, and the data was finally recovered
- NFT:数字所有权的核心
- sqlmap injection tutorial common commands
- Memcached :安装
- cocos2d-x 实现跨平台的目录遍历
猜你喜欢
对js的数组的理解
MySQL错误-this is incompatible with sql_mode=only_full_group_by完美解决方案
For penetration testing methods where the output point is a timestamp (take Oracle database as an example)
2021美赛C题M奖思路
工件SSMwar exploded 部署工件时出错。请参阅服务器日志了解详细信息
Error: Cannot find module ‘D:\Application\nodejs\node_modules\npm\bin\npm-cli.js‘
Common JVM interview questions and answers
feign调用不通问题,JSON parse error Illegal character ((CTRL-CHAR, code 31)) only regular white space (r
MySQL compressed package installation, fool teaching
Access数据库的查询
随机推荐
vulhub靶场学习日记hackme2
Several solutions for mysql startup error The server quit without updating PID file
常见JVM面试题及答案整理
MySQL高级SQL语句(二)
Artifact SSMwar exploded Error deploying artifact.See server log for details
win11中利用IIS10搭建asp网站
【云原生】SQL(及存储过程)跑得太慢怎么办?
Build DVWA with phpstudy
[Cloud native] Ribbon is no longer used at the bottom layer of OpenFeign starting from the 2020.0.X version
vulhub靶场学习日记SickOs1.2
js中的break与continue退出
MySQL压缩包方式安装,傻瓜式教学
【windows】--- SQL Server 2008 超详细安装教程
SSH自动重连脚本
【云原生】原来2020.0.X版本开始的OpenFeign底层不再使用Ribbon了
小米手机短信定位服务激活失败
Redis:安装使用
sqlite 查看表结构 android.database.sqlite.SQLiteException: table splitTable has no column named
Yuan prospect and four track of the universe
NFT与数字藏品到底有何区别?