【发布时间】:2015-03-31 09:22:20
【问题描述】:
我正在尝试使用以下代码更新 DynamoDb 中的表..
$response = $client->updateItem(array(
"TableName" => "PlayerInfo",
"Key" => array(
"PlayerId" => array('N' => '201503261435580358849074082'),
),
"AttributeUpdates" => array(
'PlayerPrice' => array(
'N' => '5'
),
),
"ReturnValues" => \Aws\DynamoDb\Enum\ReturnValue::ALL_NEW
));
print_r($response);
但是,错误会中断其执行。它说:
One or more parameter values were invalid: Only DELETE action is allowed
when no attribute value is specified.
有人可以帮我解决这个问题吗?
【问题讨论】:
标签: amazon-dynamodb