2
ID | Number
-------------------
| 1 | 0x
| 1 | 12345678
| 1 | 12345678
| 2 | 0x
| 2 | 0x
| 2 | 242424
| 3 | 88888
| 3 | 88888
| 4 | 0x
| 4 | 0x
表必须更新,让每一位“0X”将更新到正确的“数字”,如果存在一个。
结果所需要的:
ID | Number
-------------------
| 1 | 12345678 <-- Updated
| 1 | 12345678
| 1 | 12345678
| 2 | 242424 <-- Updated
| 2 | 242424 <-- Updated
| 2 | 242424
| 3 | 88888 <- No change on id = 3
| 3 | 88888 <- No change on id = 3
| 4 | 0x <- No change because there's no relevant 'Number' to update
| 4 | 0x <- No change because there's no relevant 'Number' to update
哪里是你试试? – lad2025