标签:values pytho 数据 nbsp cursor exec class mysq comm
1 sql = ‘INSERT INTO course(class_name, credit, properties, teacher_name, college_given, classroom) ‘ 2 ‘VALUES ("%s", "%d", "%s", "%s", "%s", "%s")‘ % 3 (class_name, credit, properties, teacher_name, college_given, classroom) 4 cursor.execute(sql) 5 conn.commit()
标签:values pytho 数据 nbsp cursor exec class mysq comm
原文地址:http://www.cnblogs.com/cymwill/p/6501077.html