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?

Recommended Answers

All 3 Replies

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

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.