将值从一列复制到同一表中的另一列 [英] Copy values from one column to another in the same table
本文介绍了将值从一列复制到同一表中的另一列的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何将值从一列复制到另一列?我有:
数据库名称:list
number | test
123456 | somedata
123486 | somedata1
232344 | 34
我想要:
数据库名称:list
number | test
123456 | 123456
123486 | 123486
232344 |我应该使用什么mysql查询?
$ b $ p < h2_lin>解决方案
UPDATE`table`SET test = number
How can I make a copy values from one column to another? I have:
Database name: list
number | test
123456 | somedata
123486 | somedata1
232344 | 34
I want to have:
Database name: list
number | test
123456 | 123456
123486 | 123486
232344 | 232344
What mysql query should I have?
解决方案 UPDATE `table` SET test=number
这篇关于将值从一列复制到同一表中的另一列的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文