Create, Read, Update, Delete with sqlite3, Tutorial - Python SQLite part I , #34
4views
1likes
016:23
T
Taught by Celeste AI - AI Coding Coach
View on YouTubeDescription
Learn Python SQLite! In this tutorial, you will learn how to use the built-in sqlite3 module to create databases, run SQL queries, and build a complete employee
management system.
What you will learn:
- Connecting to SQLite databases with sqlite3.connect()
- Creating tables with CREATE TABLE IF NOT EXISTS
- Inserting data with execute() and executemany()
- Fetching results with fetchall() and fetchone()
- Using ? placeholders to prevent SQL injection
- Context managers for safe database connections
- Row factory for dict-like column access
- WHERE, ORDER BY, LIMIT filtering and sorting
- UPDATE and DELETE with rowcount confirmation
- COUNT, AVG, MIN, MAX aggregate functions
- GROUP BY for category-level statistics
- Wrapping database operations in reusable functions
- Soft deletes with an active flag
Timestamps:
0:00 - Introduction
0:33 - SQLite Basics Explained
1:00 - SQLite Basics Demo
3:45 - Queries & Updates Explained
4:12 - Queries & Updates Demo
8:12 - Employee Database Explained
8:39 - Employee Database Demo
13:31 - Recap
14:11 - End
Source code: https://github.com/GoCelesteAI/python_sqlite_database
Previous: Lesson 33 - Web Scraping
Next: Lesson 35 - SQLAlchemy ORM
Coming soon!
Back to tutorialsOpen in YouTube
Duration
16:23
Published
February 12, 2026
Added to Codegiz
March 15, 2026