Loading topic
SELECT, INSERT, UPDATE, and DELETE statements. You should also know what primary keys and column defaults are, and have used psql or another PostgreSQL client.2 min readINSERT syntax, primary keys, column defaults, and how to run SQL in psql or another PostgreSQL client.2 min readSELECT and UPDATE statements, WHERE clauses, primary keys, and how to run SQL in psql or another PostgreSQL client.2 min readDELETE, WHERE, primary keys, and how to run SQL in psql or another PostgreSQL client. This chapter focuses on the rows PostgreSQL reports while it deletes them.2 min readSELECT, INSERT, UPDATE, and DELETE, and that you have used PostgreSQL through psql or another client. The RETURNING clause does more than return raw columns. It can calculate values, rename output columns, and expand a row into all of its columns.2 min readSELECT, INSERT, UPDATE, and DELETE, understand primary keys and defaults, and can connect to PostgreSQL with psql or another client.2 min readSELECT, INSERT, UPDATE, and DELETE, along with primary keys and PostgreSQL clients. A data-modifying common table expression, or CTE, is a named substatement in a WITH clause that can change data. Its RETURNING rows can become input to another statement.2 min readINSERT, UPDATE, and DELETE, primary keys, unique constraints, and how to run SQL in psql or another PostgreSQL client.2 min readSELECT, UPDATE, DELETE, table aliases, and PostgreSQL clients. This chapter shows how RETURNING can include values from tables joined during an UPDATE or DELETE.2 min readINSERT, UPDATE, and DELETE, primary keys, column defaults, and how to run SQL in psql or another PostgreSQL client.2 min readINSERT, UPDATE, and DELETE, understand primary keys and constraints, and can run statements in PostgreSQL. It focuses on PostgreSQL 17 and later, where MERGE supports a RETURNING clause.2 min readUPDATE, INSERT, DELETE, primary keys, and PostgreSQL clients such as psql. This chapter focuses on PostgreSQL 18's ability to show both versions of a row in one RETURNING clause.2 min readSELECT, INSERT, UPDATE, and DELETE, and that you can run SQL through psql or another PostgreSQL client. This chapter focuses on mistakes that occur after you understand the basic RETURNING syntax.2 min read