使用boto从amazon simpledb中选择itemName()

Cal*_*Don 1 boto amazon-simpledb

我正在尝试使用boto从simpleDB select查询中获取itemName(),但是这样做select itemName() from domain where attribute = 'foo' limit 10会给我一个包含10个项目的结果集,但它们都是空的.

我也试着select `itemName()` from domain where attribute = 'foo'select itemName from domain where attribute = 'foo'.

gar*_*aat 5

返回的Item对象为空,因为您不要求查询中的任何属性.itemName实际上不是一个属性.它作为特殊值存储在Item对象上,可以作为item.name访问.