如何打印sql语句的执行结果_python

db=MySQLdb.connect(host=’localhost’,user=’root’, passwd=’xxxxx’,db=’dbname’) cur=db.cursor() cur.execute(‘select * from records’)web 打印全部执行结果 rs=cur.fetchall() for r in rs: print rsvg 打印一条数据的全部字段信息 rs
相关文章
相关标签/搜索