如何使用TKINTER在数据库中创建多个表
大家好,我有一个问题是我对应用程序有一个想法,但是它需要在数据库中创建多个表,并且用户使用“ tkinter”条目指定其
名称
cr.execute("""create table {}(text1 text,text2 text ,var1 float,var2 float
""".format(table_name))
hey guys I have a problem that I have an idea for an application but it needs to create multiple tables in database and the user specify its name by using 'tkinter' entry
I had used this query but it doesn't work
cr.execute("""create table {}(text1 text,text2 text ,var1 float,var2 float
""".format(table_name))
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在此处添加示例代码。
请按照@alias的建议阅读。
请参阅运行演示的代码在这里。
Adding a sample code here for reference.
Please read-through as suggested by @Alias.
Refer code running demo here.