On Friday, September 9, 2016 at 12:48:50 PM UTC+12, sum abiut wrote:
>     cus.execute("SELECT * FROM glbud ")

Never use “select *”, except for testing.

>     for row in cus:
>            print(row)
> this works perfect, but when i try to iterate through and only print out
> specific fields i got the error NameError: name 'budget_code' is not defined

Possibly because you are getting back a tuple? Are you expecting some other 
object type?
-- 
https://mail.python.org/mailman/listinfo/python-list

Reply via email to