Loading topic
INSERT statements, PostgreSQL data types, and the difference between NULL and an empty value. PostgreSQL arrays store multiple values of one element type in a single column. For example, a text[] column stores an array whose elements are all text values2 min readSELECT statements, table definitions, and SQL NULL behavior. This chapter uses PostgreSQL array columns and focuses on reading individual elements and ranges of elements.2 min readSELECT, WHERE, table creation, and PostgreSQL array syntax. It also assumes you understand that SQL comparisons involving NULL use three-valued logic.2 min readSELECT, UPDATE, WHERE, and NULL behavior. It also assumes that posts.tags is a text[] column, such as the one below.2 min readSELECT, WHERE, casts, and SQL’s three-valued logic. PostgreSQL arrays have two different kinds of “nothing”:2 min readSELECT, WHERE, NULL, and three-valued logic. The examples use a table named posts with a tags text[] column. PostgreSQL arrays use 1-based positions, but array search operators compare values rather than positions.3 min readSELECT, joins, grouping, and NULL behavior. It also assumes a table named posts with an integer id and a text[] column named tags.2 min readSELECT, WHERE, and CREATE INDEX statements. You should also understand PostgreSQL arrays and the operators @>, <@, and &&.3 min readSELECT, array subscripts, NULL, and PostgreSQL data types. This chapter focuses on arrays with two or more dimensions, such as a grid of values.2 min readSELECT, INSERT, UPDATE, and WHERE statements. You should also understand NULL, primary keys, foreign keys, and how to create tables. This chapter focuses on choosing a design, not on learning array syntax from the beginning.3 min read