当前的现有表格如下:
id number amount
1 123 30000.00
2 123 15000.00
3 321 45000.00
... ... ...
1000 567 75000.00
现在我想在每个已经存在的行中添加一个名为allocated_amount
的新列,并将默认值设为amount
列的值。
id number amount allocated_amount
1 123 30000.00 30000.00
2 123 15000.00 15000.00
3 321 45000.00 45000.00
... ... ... ...
1000 567 75000.00 75000.00
可以吗?我正在使用MySQL Workbench GUI。