How do I add to each row in MySQL?

前端 未结 4 434
失恋的感觉
失恋的感觉 2021-01-17 17:16

We have a column that is a simple integer. We want to add to each row the value 10. How do we do it in sql for the MySQL database?

Actually we have another column th

4条回答
  •  难免孤独
    2021-01-17 17:33

    update table_name set column_name=column_name+10 where column_name is not null;
    

提交回复
热议问题