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

All 2 Replies


for row in c:
    print (row)


Be a part of the DaniWeb community

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