Introduction to Databases in Python

Let's dig into how databases can be used and connected in Python.

This chapter is about how we connect to and work with databases in Python. It is a general purpose chapter. We will not learn the complete SQL language in one chapter. Instead, we will give you high level overview of some SQL commands and then we will look at how to connect to some of the most popular databases with Python. Most databases use the basic SQL commands in the same way, but they also have some commands that are specific for that database backend or that just work slightly differently. Be sure to read particular database documentation if we run into issues.

We will start the chapter by learning some very basic SQL syntax.

Get hands-on with 1200+ tech skills courses.