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?

Recommended Answers

Probably

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

All 2 Replies

Probably

for row in c:
    print (row)

Thanks

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.