2
如何通過「token_no」在掃描操作使用順序排序掃描操作中Dynamodb
$dynamodb = new AmazonDynamoDB();
$query = array(
'TableName' => $this->token_table,
'AttributesToGet' => array('token_no'),
'ScanFilter' => array(
'queue_id' => array(
'ComparisonOperator' => AmazonDynamoDB::CONDITION_EQUAL,
'AttributeValueList' => array(
array(AmazonDynamoDB::TYPE_STRING => (string)$queue_id)
)
),
'queue_date' => array(
'ComparisonOperator' => AmazonDynamoDB::CONDITION_EQUAL,
'AttributeValueList' => array(
array(AmazonDynamoDB::TYPE_STRING => (string)$date)
)
)
),
);
$scan_response = $dynamodb->scan($query);
如何查詢操作不是笨工作。 –