Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Database Connect
#1
Which native (official) python module can I use to connect to any sql database ?
Reply
#2
You use a library for the specific database you're connecting to. Each database is different, so they have their own drivers. For SQLite, there's a module in the standard library, for PostgreSQL, there's Psycopg 2, for example.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  Connect and disconnect to database snakes 3 2,286 Jun-06-2021, 12:03 PM
Last Post: jefsummers
  Connect to database OVH Serferi 0 2,046 Apr-26-2019, 07:34 AM
Last Post: Serferi
  connect to remote database via python script sunstar20 5 5,373 Apr-23-2018, 11:05 AM
Last Post: Gribouillis
  Unable to connect oracle database using python code mayuresh 2 17,120 Jan-27-2018, 11:57 AM
Last Post: mayuresh

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020