从另一列计算指数
calculate an exponent from another column
有谁知道 DynamoDB 是否支持在 UpdateExpression 中计算指数?
我知道我可以在列中添加或减去,但这似乎是我能找到的更新的数学限制。
我正在尝试取现有列值,取该列值的 2 次方,然后更新第二列。
谢谢
很遗憾,您只能add/subtract。来自 docs for Update Expressions:
Incrementing and Decrementing Numeric Attributes
You can add to or subtract from an existing numeric attribute. To do this, > use the + (plus) and - (minus) operators.
阅读该项目后,您需要在应用程序代码中执行指数函数。
有谁知道 DynamoDB 是否支持在 UpdateExpression 中计算指数?
我知道我可以在列中添加或减去,但这似乎是我能找到的更新的数学限制。
我正在尝试取现有列值,取该列值的 2 次方,然后更新第二列。
谢谢
很遗憾,您只能add/subtract。来自 docs for Update Expressions:
Incrementing and Decrementing Numeric Attributes You can add to or subtract from an existing numeric attribute. To do this, > use the + (plus) and - (minus) operators.
阅读该项目后,您需要在应用程序代码中执行指数函数。