I am trying to update into table if score > 0 but nothing display into table.
if score > 0:
note = "more"
update = "UPDATE Sentence SET Note = %s WHERE score = %s"
c.execute(update, (note[0], score))
Did I miss something?
I am trying to update into table if score > 0 but nothing display into table.
if score > 0:
note = "more"
update = "UPDATE Sentence SET Note = %s WHERE score = %s"
c.execute(update, (note[0], score))
Did I miss something?
Why you put "more" to note but only use the first letter?
Are you sure score is a numeric value?
I want to update "more" in Note column if score more than 0
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.