Appendix ABonus Lesson on Applying SQL with Python

In this bonus lesson, you'll work with MySQL and Python. It is assumed that you already know how to program in Python, so the focus will be on learning how to manage databases, tables, and data.

Because it is assumed you are already familiar with Python, prior to starting this lesson, you should have the following:

  • The PyMySQL package installed in Python
  • A MySQL instance running in the background
  • The username and password for the running MySQL instance

You may also find it useful to have an active MySQL window open (command line or GUI, such as MySQL Workbench) that you can use to confirm activities managed by Python during this lesson.

DATABASE OPERATIONS

While it is possible to create databases in a MySQL interface and then connect to those databases using Python, you can use the PyMySQL package to manage all database operations ...

Get Job Ready SQL now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.