出于某种原因,我想更改数据库。
由于记录太多,无法手动更改这些值。
请告知如何编写此 SQL,谢谢。
从:
id percentage type
1 6 services
1 10 testing
3 8 services
3 20 testing
6 61 services
6 90 testing
到:
id percentage type
1 10 services
1 10 testing
3 20 services
3 20 testing
6 90 services
6 90 testing