
- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Disconnecting Database in Python
To disconnect Database connection, use close() method.
db.close()
If the connection to a database is closed by the user with the close() method, any outstanding transactions are rolled back by the DB. However, instead of depending on any of DB lower level implementation details, your application would be better off calling commit or rollback explicitly.
- Related Questions & Answers
- Connecting to and Disconnecting from the MySQL Server
- Database Connection in Python
- Python Unicode Database
- Creating Database Table in Python
- Database INSERT Operation in Python
- Database READ Operation in Python
- Database Update Operation in Python
- Database DELETE Operation in Python
- Database Handling Errors in Python
- Oracle Database Connection in Python
- Unicodedata – Unicode Database in Python
- How to connect Database in Python?
- Querying SAP database using Python
- Performing Database Transactions using Python
- Access to the Group Database in Python
Advertisements