import MySQLdb
import csv
import sys
db = MySQLdb.connect("host","username","password","dbname" )
c = db.cursor()
select_pos_score = 'SELECT score FROM Sentence'
c.execute(select_pos_score)

I use MySQLdb. I want to display all score that are selected from table "Sentence" but I do not know how to display it.

Any suggest for me to display all score?

Probably

for row in c:
    print (row)

Thanks

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.