List keys in Amazon SimpleDB

I am trying to list keys in Amazon SimpleDB. In SQL, it will be something like this:

select unique itemName() from domain;

I searched, but did not find a way to do this. Any help?

+5
source share
2 answers

By definition, elements in a domain are unique, so you were almost there:

select itemName() from domain
+6
source

AFAIK SimpleDB does not unique, but other than this:

select itemName() from mydomain order by itemName()

should work, and you can easily remove duplicates (if any) since you get the names in sorted order (like itertools.groupbyin Python and any similar mechanism in any of your favorite languages).

+1
source

All Articles