Skip to main content
Loading page…
Python Mastery
Chapter 27
Lesson 3 of 4
SQL & SQLite
Contents
Notes
Tutor
Concept
Relational Databases and SQL
Loading activity…
Previous
1 / 8
Continue
Contents
Notes
Discussion
Tutor
30 min
8 activities
0 of 8 done
In this lesson
1
Relational Databases and SQL
2
connect, cursor, execute, commit — The Core Pattern
3
SQL Injection — The Most Dangerous Mistake
4
CRUD: A Complete Contacts Database
5
Tip: row_factory = sqlite3.Row
6
SQL Injection Check
7
Practice: Query an In-Memory Database
8
Warning: executemany vs a Loop
Objectives
Learner can explain the relational model and when to use a database
Learner can connect to a SQLite database and execute DDL and DML statements
Learner can use parameterized queries to prevent SQL injection
Learner can perform CREATE, INSERT, SELECT, UPDATE, and DELETE operations from Python
Chapter 27 · APIs, HTTP & Databases
HTTP & the requests Library
Consuming REST APIs & Auth
SQL & SQLite
ORMs (SQLAlchemy) & PostgreSQL
Previous: Consuming REST APIs & Auth
Next: ORMs (SQLAlchemy) & PostgreSQL