Copy values from one column to another in the same table

前端 未结 7 1654
别那么骄傲
别那么骄傲 2020-12-02 05:08

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
         


        
7条回答
  •  不思量自难忘°
    2020-12-02 05:35

    try following:

    UPDATE `list` SET `test` = `number` 
    

    it creates copy of all values from "number" and paste it to "test"

提交回复
热议问题