bugl
bugl
HomeLearnPatternsPathsSearch
HomeLearnPatternsPathsSearch

Loading lesson path

Learn/Python

Python

Databases in Python

Connect Python to SQL and document databases for real-world application work.

Lesson 1

Python MySQL

Python can be used in database applications.

Read lesson →Loading…
Lesson 2

Python MongoDB

Python can be used in database applications.

Read lesson →Loading…
Lesson 3

Python MySQL Create Database

To create a database in MySQL, use the "CREATE DATABASE" statement:

Read lesson →Loading…
Lesson 4

Python MongoDB Create Database

To create a database in MongoDB, start by creating a MongoClient object, then specify a connection URL with the correct ip address and the name of the database you want to create.

Read lesson →Loading…
Lesson 5

Python MySQL Create Table

To create a table in MySQL, use the "CREATE TABLE" statement.

Read lesson →Loading…
Lesson 6

Python MongoDB Create Collection

A collection in MongoDB is the same as a table in SQL databases.

Read lesson →Loading…
Lesson 7

Python MySQL Insert Into Table

To fill a table in MySQL, use the "INSERT INTO" statement.

Read lesson →Loading…
Lesson 8

Python MongoDB Insert Document

A document in MongoDB is the same as a record in SQL databases.

Read lesson →Loading…
Lesson 9

Python MySQL Select From

To select from a table in MySQL, use the "SELECT" statement:

Read lesson →Loading…
Lesson 10

Python MongoDB Find

In MongoDB we use the find() and find_one() methods to find data in a collection.

Read lesson →Loading…
Lesson 11

Python MySQL Where

When selecting records from a table, you can filter the selection by using the "WHERE" statement:

Read lesson →Loading…
Lesson 12

Python MongoDB Query

When finding documents in a collection, you can filter the result by using a query object.

Read lesson →Loading…
Lesson 13

Python MySQL Order By

Use the ORDER BY statement to sort the result in ascending or descending order.

Read lesson →Loading…
Lesson 14

Python MongoDB Sort

Use the sort() method to sort the result in ascending or descending order.

Read lesson →Loading…
Lesson 15

Python MySQL Delete From By

You can delete records from an existing table by using the "DELETE FROM" statement:

Read lesson →Loading…
Lesson 16

Python MongoDB Delete Document

To delete one document, we use the delete_one() method.

Read lesson →Loading…
Lesson 17

Python MySQL Drop Table

You can delete an existing table by using the "DROP TABLE" statement:

Read lesson →Loading…
Lesson 18

Python MongoDB Drop Collection

You can delete a table, or collection as it is called in MongoDB, by using the drop() method.

Read lesson →Loading…
Lesson 19

Python MySQL Update Table

You can update existing records in a table by using the "UPDATE" statement:

Read lesson →Loading…
Lesson 20

Python MongoDB Update

You can update a record, or document as it is called in MongoDB, by using the update_one() method.

Read lesson →Loading…
Lesson 21

Python MySQL Limit

You can limit the number of records returned from the query, by using the "LIMIT" statement:

Read lesson →Loading…
Lesson 22

Python MongoDB Limit

To limit the result in MongoDB, we use the limit() method.

Read lesson →Loading…
Lesson 23

Python MySQL Join

You can combine rows from two or more tables, based on a related column between them, by using a JOIN statement.

Read lesson →Loading…