Loading topic
CREATE FUNCTION syntax, SQL expressions, PostgreSQL data types, and how to run statements in psql or another PostgreSQL client. This chapter focuses on two ways to write the body of a SQL-language function: dollar-quoted text and the SQL-standard BEGIN ATOMIC form.2 min readSELECT statements, PostgreSQL data types, schemas, and how to run SQL in psql or another PostgreSQL client. This chapter focuses on how values enter a SQL function and how results leave it.2 min readSELECT statements, PostgreSQL data types, and how to run commands in a PostgreSQL client.2 min readCREATE FUNCTION statements and understand that SQL NULL means an unknown or missing value. This chapter focuses on how PostgreSQL passes NULL into SQL functions and when STRICT can prevent the function body from running.2 min readSELECT statements, PostgreSQL data types, and how to run SQL in a PostgreSQL client. A set-returning function is a function that produces zero or more rows instead of one scalar value.2 min readINSERT, UPDATE, and DELETE statements, PostgreSQL types, and how to run SQL from a client. The examples use SQL-language functions. These functions execute SQL statements and can return a value to the caller.2 min readSELECT. You should also understand that a function's return type is part of its definition.2 min readSELECT statements, PostgreSQL data types, and how to read a simple EXPLAIN plan. This chapter focuses on scalar SQL functions. Set-returning functions have additional inlining rules.2 min readSELECT, function volatility, and the difference between a scalar result and a set of rows.2 min read