In this video, we explore how to use PostgreSQL functions in a real-world scenario and how to call those functions directly from Python. We start by creating a simple products table, then write a PostgreSQL function that uses a SELECT query to calculate discounted prices.
After testing the function inside PostgreSQL, we switch to Python and learn how to connect to a PostgreSQL database using psycopg2. You’ll see how easy it is to call a database function from Python and work with the returned results in your application.
0:00 - Introduction
0:13 - PostgreSQL: Creating Tables, Inserting Data & Functions
1:12 - Calling PostgreSQL Functions with Python
1:55 - Free Python & PostgreSQL Courses
Source Code:
https://github.com/turtlecode/postgre...
✔️ Free Courses:
/ @turtlecode
✔️ Join Channel:
/ @turtlecode
This tutorial is perfect if you want to understand how Python and PostgreSQL work together, how database functions are used in real projects, and how to keep business logic inside the database.
Auf dieser Seite können Sie das Online-Video Using PostgreSQL Functions in Real Projects with Python mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Turtle Code 22 Juni 2026 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 86 Mal angesehen und es wurde von 0 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!