In article <[email protected]>,
Chris Hare  <[email protected]> wrote:
>
>cursor.execute('select * from net where NetNumber > 0')

Unless your table is guaranteed to never change layout, I suggest that
instead listing fields is a Good Idea:

cursor.execute('select netNumber, netType, .... from net where NetNumber > 0')

Then the tuple unpack suggested by other posters will never fail.
-- 
Aahz ([email protected])           <*>         http://www.pythoncraft.com/

"...if I were on life-support, I'd rather have it run by a Gameboy than a
Windows box."  --Cliff Wells
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to