ValueError: dict contains fields not in fieldnames

后端 未结 3 752
醉话见心
醉话见心 2020-12-03 04:57

Can someone help me with this.

I have my Select query

selectAttendance = \"\"\"SELECT * FROM table \"\"\"

And I want the content o

3条回答
  •  甜味超标
    2020-12-03 05:04

    Hi all thank you for answering. I finally found out how to make it. here is the code

        w = csv.writer(file(r'test.csv','wb'), delimiter=';')
        w.writerows([["Bio Id","Last Name",.....]])
        w.writerows(db.session.execute(selectAttendance))
        db.session.commit()
    

提交回复
热议问题