How to Create a Database in Python [Best Way] SQLAlchemy

Опубликовано: 22 Март 2026
на канале: Hashtag Programação
48,156
2.7k

Want to learn more about our Complete Python Course? Click the link below to secure your spot in the next class:
https://lp.hashtagtreinamentos.com/es...

TO DOWNLOAD THE FREE WEBSITE CREATION MINICOURSE:
https://blp.hashtagtreinamentos.com/p...

-----------------------------------------------------------------------

► Files Used in Video:
https://pages.hashtagtreinamentos.com...

-----------------------------------------------------------------------

If you prefer the video in text format:
https://www.hashtagtreinamentos.com/b...

-----------------------------------------------------------------------

TO HIRE HASHTAG FOR YOUR COMPANY:
https://www.hashtagtreinamentos.com/t...

-----------------------------------------------------------------------

Want to learn how to create a database in Python using SQLAlchemy? You'll be able to create databases without using SQL commands!

In this lesson, I'll explain what SQLAlchemy is and how you can use it to create your database and the tables within them.

You'll also learn CRUD (Create, Read, Update, and Delete), which means you'll learn how to create, read, update, and delete information within a database.

Which is very important, isn't it? Curious to know how to do all this without using SQL code? Then come with me and I'll show you!

-----------------------------------------------------------------------

Hashtag Programming

► Subscribe to our channel: http://bit.ly/3c0LJQi
► Turn on notifications (click the bell)!
► Like our video!

-----------------------------------------------------------------------

Social Media

► Blog: https://bit.ly/2MRUZs0
► YouTube: http://bit.ly/3c0LJQi
► Instagram: https://bit.ly/3o6dw42
► Facebook: http://bit.ly/3qGtaF2

Here in the videos on the Hashtag Programação channel, we teach several Python tips so you can develop in this programming language and create your own projects and automations!

-----------------------------------------------------------------------

Class Content

00:00 Introduction
00:50 What is SQLAlchemy?

01:53 SQLAlchemy Installation
02:27 Imports
03:03 Creating the database (Create_engine)
05:20 Creating a section (ORM)
07:32 Database Base
08:44 Viewing the database
09:27 Creating a table in the database
12:00 Creating table fields
14:20 Foreignkey
16:28 _Init_ Function
19:25 Rules on database columns
22:08 Viewing the database
22:43 CRUD (Create, Read, Update, and Delete)
23:15 Creating data in the table (add and save)
26:25 Reading data from the database
31:04 Database update (update)
32:19 Deleting information from the database
33:26 Conclusion

#python #hashtagprogramming