使用SQL数据库的Python保存功能 [英] Python saving feature using SQL database

查看:101
本文介绍了使用SQL数据库的Python保存功能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我找不到关于如何构建可以与python代码进行交互的SQL数据库的明确指南。我想要做的是拥有一个SQL数据库,该数据库可以保存python代码中的某些变量,以便以后可以从数据库中加载它们。这应该能够支持多个用户,因此用户应该需要输入用户名和密码才能访问数据库中的信息。是否有人有执行此操作的代码,或者知道可以帮助我的指南?谢谢:)

P.S.我对SQL数据库和不同类型几乎一无所知,因此,如果我的问题似乎不太具体,我深表歉意。

I cannot find a clear guide on how to build an SQL database which can interact with python code. What I want to do is have an SQL database which can save certain variables from my python code, so that I can load them later from the database. This should be able to support multiple users, so users should need to put in their username and password to access their information in the database. Does anybody have code to do this, or know of a guide that could help me out? Thanks :)
P.S. I know little to none about SQL databases and the different types, so I apologise if my question may seem not very specific.

推荐答案

如果您还可以使用MySQL,那么该视频系列似乎是一个不错的起点:链接

If you are ok using MySQL this video series looks to be a good place to start: link

这篇关于使用SQL数据库的Python保存功能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆