-
Book Overview & Buying
-
Table Of Contents
-
Feedback & Rating
Python GUI Programming Cookbook
By :
This recipe presents the entire Python code that shows you how to create and drop MySQL databases and tables, as well as how to display the existing databases, tables, columns, and data of our MySQL instance.
After creating the database and tables, we will insert data into the two tables we are creating in this recipe.
We are using a primary to foreign key relationship to connect the data of the two tables.
We will go into the details of how this works in the following two recipes, where we modify and delete the data in our MySQL database.
This recipe builds on the MySQL database we created in the previous recipe and also shows you how to drop and recreate the GuiDB.
Dropping the database of course deletes all data the database had in its tables, so we will also show you how to re-insert that data.
The entire code of our MySQL.py module is present in the code folder of this chapter, which is available for download from Packt Publishing...
Change the font size
Change margin width
Change background colour