0

我想通过取 X 的最大值并向其添加 1 来更新表中的某个值,例如 x。

以下更新对我不起作用。

update table set x=select max(x)+1 where y='some value'

任何人都可以提出任何方法吗?

4

0 回答 0