table.update_item(
Key=_filter,
UpdateExpression='set type = :g',
ExpressionAttributeValues={
':g': '111'
}
)
botocore.exceptions.ClientError: An error occurred (ValidationException) when calling the UpdateItem operation: Invalid UpdateExpression: Attribute name is a reserved keyword; reserved keyword: type
- type 是保留关键词
- 也没有象 mysql 加``的语法