Need help for converting query result to list of dictoinary

From: sanjay2kind(at)yahoo(dot)com (sanjay)
To: pgsql-general(at)postgresql(dot)org
Subject: Need help for converting query result to list of dictoinary
Date: 2003-02-07 17:00:22
Message-ID: 63170f57.0302070900.78bcf6d3@posting.google.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi All,

How to make a dictoinary list of a query result.
Example.
select id,name from account.
it should be like [{'name':aaa,'id':12},{'name':bbb,'id':23},...]

Thanks,
Sanjay

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Alexander Stanier 2003-02-07 17:07:18 On delete cascade not working
Previous Message Chris Travers 2003-02-07 16:50:38 Re: inherited, unique serial field...