I'm doing a script in Python by accessing SQLite database. I made a For loop but I do not know how to get the value of a column in the table.
See the example:
cursor2 = cnx.cursor()
cursor2.execute("select * from despesas")
cursor2.moveToFirst()
cont = 0
lista = []
for (despesa) in cursor2:
if permanente="S":
elif:
I need to check if the value of the "permanent" column in the "expenses" table is "S" or "N". The "permanent" column is varchar (1). Then I'll switch to boolean. How do I?