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

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?

Recommended Answers


for row in c:
    print (row)
Jump to Post

All 2 Replies


for row in c:
    print (row)


Be a part of the DaniWeb community

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