当前位置:网站首页>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!!!
边栏推荐
猜你喜欢
Fragmented NFT (Fractional NFT)
带你搞懂MySQL隔离级别,两个事务同时操作同一行数据会怎样?
How MySQL - depots table?A look at will understand
js中的对象与函数的理解
flutter arr 依赖
DeFi Token in the project management
For penetration testing methods where the output point is a timestamp (take Oracle database as an example)
Linux modify MySQL database password
【swagger关闭】生产环境关闭swagger方法
flutter 混合开发 module 依赖
随机推荐
Filter out egrep itself when using ps | egrep
js中的break与continue退出
著名网站msdn.itellyou.cn原理分析
[Cloud Native] What should I do if SQL (and stored procedures) run too slowly?
Build vulhub vulnerability shooting range on kali
Hyper-V新建虚拟机注意事项
[windows]--- SQL Server 2008 super detailed installation tutorial
[Cloud native] Open source data analysis SPL easily copes with T+0
MySql to create data tables
年终总结——岁月静好~
工件SSMwar exploded 部署工件时出错。请参阅服务器日志了解详细信息
【云原生】原来2020.0.X版本开始的OpenFeign底层不再使用Ribbon了
What is an EVM Compatible Chain?
mac10.14中安装mysqldb
Linux修改MySQL数据库密码
Install mysqldb in mac10.14
[JVM Loading]---Class Loading Mechanism
quick-3.5 ActionTimeline的setLastFrameCallFunc调用会崩溃问题
Yuan prospect and four track of the universe
Digital twins will be an important way to enter the "metaverse"