Skip to content Skip to sidebar Skip to footer

How To Create Or Open A Database With A Value Stored In A Variable

I'm using sqlite to store some values in a database , but the values are from different source so i have to put them in different database so i tried something like: source_name =

Solution 1:

str.__mod__() is a method on str:

db = sqlite3.connect("%s" % fullpath)

Or because fullpath is already a string:

db = sqlite3.connect(fullpath)

Post a Comment for "How To Create Or Open A Database With A Value Stored In A Variable"