PostgreSQL Tutorial: PL/pgSQL
This section shows you step by step how to use the PL/pgSQL to develop PostgreSQL user-defined functions and stored procedures.
This section shows you step by step how to use the PL/pgSQL to develop PostgreSQL user-defined functions and stored procedures.
Summary: In this tutorial, you will learn how to use the returns setof
option to define a function that returns one or more rows.
Summary: In this tutorial, you will learn how to create PostgreSQL stored procedures with INOUT
parameters.
Summary: The plprofiler is an extension for the PostgreSQL database system to create performance profiles of PL/pgSQL functions and stored procedures.
Summary: The pg_variables
module provides functions for working with variables of various types. The created variables are only available in the current user session.
Summary: The plpgsql_check
extension is a linter tool that does source code static analyze for the PostgreSQL PL/pgSQL language, which is a native language for PostgreSQL stored procedures.
Summary: in this tutorial, you will learn how to use the PL/pgSQL SELECT INTO
statement to select data from the database and assign it to a variable.
Summary: in this tutorial, you will learn how to use the dollar-quoted string constants ($$
) in user-defined functions and stored procedures.
Summary: in this tutorial, you will learn about the PostgreSQL assert statement and how to use it for debugging purposes.
Summary: in this tutorial, you will learn about the block structure of PL/pgSQL and how to write and execute your first PL/pgSQL block.
Copyright (c) 2017 - 2023, Redrock Data Services, Inc. All rights reserved.