Python 中Mysql创建表时判断是否已经存在

sql = '''
	create table if not exists tableName(xxx);
'''
cursor.execute(sql)
db.commit()
发布了233 篇原创文章 · 获赞 271 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/qq_29339467/article/details/105315810