Python SQLite Tutorial: Complete Overview - Creating a Database, Table, and Running Queries

Corey Schafer · 1.1M views · 2017 · 29:49

Open on YouTube

Python, Ruby & scripting languagesDatabases & storagetutorial

Why Stack Overflow recommends it

Stack Overflow users link it when someone needs to store or persist data in a Python program and is new to SQLite.

Recommended by 3 people across 3 different months, 2020 to 2020.

What it is

Corey Schafer gives a roughly 30 minute walkthrough of Python's built-in sqlite3 module. He creates a database and a table, then inserts, selects, updates and deletes rows, with the code published on GitHub.

What people said

Recommends Lucas Fernandez · 2020-02 · Stack Overflow · on “sqlite value wont update”

I've learnt from link [this video] (24:55 time mark) that I dont need to commit the changes if my `execute` statement is inside a `with` statement (wich makes the conection, commits and closes the conection by itself). But im gonna try that anyway. Thanks a lot!

Recommends klv0000 · 2020-07 · Stack Overflow · on “Trying to create a Password Generator that can save passwords”

I guess you want to save created passwords in SQLite database. Here is youtube link for you if you are new to SQLite. [this video]

Recommends Neo · 2020-08 · Stack Overflow · on “How to save user input and store for later use in Python3”

Check out this tutorial [this video] from Corey Schafer. He is a very good Python teacher. You can complete that tutorial and modify it to get the input from the user and call the necessary functions from the tutorial to create a DB row.