Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想通过取 X 的最大值并向其添加 1 来更新表中的某个值,例如 x。
以下更新对我不起作用。
update table set x=select max(x)+1 where y='some value'
任何人都可以提出任何方法吗?