Loading topic
integer stores whole numbers, date stores calendar dates, and text stores character data.2 min readSELECT, WHERE, INSERT, and CREATE TABLE, and that you have used PostgreSQL types such as integer, numeric, text, date, and timestamp.2 min readSELECT queries and familiarity with PostgreSQL types such as integer, numeric, text, date, and timestamp. The focus is how PostgreSQL assigns types to values written directly in a query.2 min readSELECT expressions and common PostgreSQL types. You should also know that a cast changes the type of a value, not necessarily the value’s meaning.2 min readSELECT, INSERT, and CREATE TABLE, and that you have used PostgreSQL types such as text, varchar, and char. This chapter focuses on how character types store values, how casts enforce length, and why trailing spaces can cause surprises.2 min readSELECT, INSERT, UPDATE, and PostgreSQL types such as integer, bigint, numeric, text, and smallint. PostgreSQL can convert values in three different cast contexts. The context controls when a conversion is allowed and whether you must request it.2 min readSELECT statements and common PostgreSQL types. You should also understand that a cast converts a value from one type to another.2 min readSELECT statements and PostgreSQL types such as numeric, date, and timestamp. It also assumes that you understand the difference between a value and its text representation.1 min readSELECT statements and PostgreSQL types such as date, timestamp, and timestamptz. A timestamp is a date plus a time. A time zone tells PostgreSQL how a local clock time relates to a global instant.2 min readSELECT and WHERE queries and be familiar with PostgreSQL types such as integer, numeric, date, and timestamp.2 min readSELECT syntax and common PostgreSQL types. This chapter shows how to inspect PostgreSQL’s catalog of registered casts and use it to predict whether a conversion is implicit, assignment-only, or explicit.2 min readSELECT syntax and common PostgreSQL types such as integer, numeric, text, and boolean. The key idea is that PostgreSQL must choose one result type when several expressions are combined.2 min readSELECT statements, PostgreSQL casts, and the difference between json and jsonb. A cast changes a value from one SQL type to another. JSONB conversion also requires choosing whether a JSON value should remain JSON or become a normal SQL value such as `integer2 min readSELECT, basic casts, and PostgreSQL types such as text and integer. It also assumes access to PostgreSQL through psql or another SQL client.1 min readSELECT, WHERE, CREATE TABLE, and basic PostgreSQL data types. This chapter focuses on how casts affect a B-tree index, the usual index type for equality and range searches.2 min readSELECT, INSERT, CREATE TABLE, and common PostgreSQL types. You should also understand that PostgreSQL checks a value's type before it chooses operators and functions.2 min read