In SQL, How to add values after add a new column in the existing table?

前端 未结 7 1442
臣服心动
臣服心动 2021-02-14 13:34

I created a table and inserted 3 rows. Then I added a new column using alter. How can I add values to the column without using any null values?

7条回答
  •  [愿得一人]
    2021-02-14 13:45

    Update table table_name set column_name = value where 'condition'; 
    

    I preferred to use p.key column for best result.

提交回复
热议问题