sqlite - How to create a new datebase(named xx.db) using python and sqlite3 -


  आयात करें sqlite3 conn = sqlite3.connect (r "डी: \ aaa.db")  < / Pre> 

क्या यह स्वचालित रूप से डीबी फ़ाइल बनाने का एक तरीका है यदि यह पहले से मौजूद नहीं है, जब मैं इसे कनेक्ट करता हूं?

धन्यवाद

आप जो कोड देते हैं करता है 'डी: \\ aaa.db' यदि यह नहीं है मौजूद है।


Comments

Popular posts from this blog

c++ - QtQuick: QQmlApplicationEngine failed to load component qrc:/main.qml:23 Invalid attached object assignment -

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net - getting a value of selected radiobutton in LoadViewState -