Id batch num
1, 111, 11
2, 222, 22
3, 333, 33
Now there is a table stock
It is
Id num
111 10
222, 99,
30 333
To achieve this effect
Id batch num
1 111 10
2, 222, 22
3 333 30
Is the list of existing joint stock table query again, the number is greater than the value of the stock
CodePudding user response:
Lambda is very convenient.https://www.jianshu.com/p/d08a7e94fb8f