Python中MySQL插入数据
                        
                            时间:2021-07-01 10:21:17
                            帮助过:22人阅读
							                        
                     
                    
                    
                     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()
 
Python中MySQL插入数据
标签:values   pytho   数据   nbsp   cursor   exec   class   mysq   comm