On May 20, 2010, at 9:32 AM, Carey Gagnon wrote:

> Given a database with the following fields:
> firstname lastname age
> 
> With the following data:
> Tom        Dick     54
> Harry      Tom      32
> Dick       Harry    23
> 
> Will return the following tuple of dictionaries:
> ('{"firstname":"Tom", "lastname":"Dick", "age":"54"}',
> '{"firstname":"Harry", "lastname":"Tom", "age":"32"}', '{"firstname":"Dick",
> "lastname":"Harry", "age":"23"}')
> 
> Do I understand correctly?

        Yes, except that the value of the 'age' entry would most likely be an 
int, not a string, unless it was actually stored in the database as a string.


-- Ed Leafe



_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/dabo-users
Searchable Archives: http://leafe.com/archives/search/dabo-users
This message: 
http://leafe.com/archives/byMID/[email protected]

Reply via email to