problems with returned data sets
Timothy Smith <timothy-/[email protected]> Thu, 04 Nov 2004 16:26:26 +1000
| Newsgroups | gmane.comp.python.db.pypgsql.user |
|---|---|
| Message-ID | <[email protected]> |
Hello, when i use fetch all i have a problem with what s returned.
everything is returned as this string ['data'] which makes is very
inconvienent to work it. is there better way of fetching things then i
am using? here is my code
cur = db.cursor()
cur.execute("SELECT UserGroup FROM UserMenuInfo WHERE UserName = UserName")
groups = cur.fetchone()
-------------------------------------------------------
This SF.Net email is sponsored by:
Sybase ASE Linux Express Edition - download now for FREE
LinuxWorld Reader's Choice Award Winner for best database on Linux.
http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click