以下查询返回所有记录,而不仅仅是 2。但是,当我在 AWS SimpleDB 浏览器中运行查询时,它可以工作。我使用boto错了吗?
conn = boto.connect_sdb()
dom = conn.get_domain('taxplan')
query = 'select Descr, PlanName, ItemName, Plan, ReceivedTime from taxplan limit 2'
rs = dom.select(query)
sl= []
for j in rs:
sl.append(j)
result['sboto'] = convert(sl[1:])
sys.stdout.write(json.dumps(result,indent=1))