当前位置:网站首页>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!!!
边栏推荐
- configure:error no SDL library found
- UiBot has an open Microsoft Edge browser and cannot perform the installation
- Build DVWA with phpstudy
- 2021面经-拥抱变化
- The MySQL database in Alibaba Cloud was attacked, and the data was finally recovered
- sqlmap injection tutorial common commands
- sqlite 查看表结构 android.database.sqlite.SQLiteException: table splitTable has no column named
- Attribute Changer的几种形态
- Install mysqldb in mac10.14
- flutter arr dependencies
猜你喜欢
随机推荐
Linux修改MySQL数据库密码
Error: Cannot find module 'D:\Application\nodejs\node_modules\npm\bin\npm-cli.js'
5 methods of MySQL paging query
腾讯云轻量服务器删除所有防火墙规则
SQLite 查询表中每天插入的数量
js中的break与continue退出
quick-3.6源码修改纪录
年终总结——岁月静好~
【云原生】开源数据分析 SPL 轻松应对 T+0
js中流程控制语句
Understanding SSRF, this article is enough
(Crypto essential dry goods) Detailed analysis of the current NFT trading markets
The latest MySql installation teaching, very detailed
MySQL压缩包方式安装,傻瓜式教学
Take you to understand the MySQL isolation level, what happens when two transactions operate on the same row of data at the same time?
纯shell实现文本替换
What is GameFi?
数字孪生将成为进入“元宇宙”一项重要的途径
CMOS管原理,及其在推挽电路中的应用
[windows]--- SQL Server 2008 super detailed installation tutorial







![[swagger close] The production environment closes the swagger method](/img/43/17be22626ba152b33beaf03f92fbec.png)

