Loading topic
CREATE TABLE, INSERT, and SELECT. You should also know that a primary key identifies each row and that PostgreSQL has integer types such as smallint, integer, and bigint.2 min readCREATE TABLE, INSERT, and SELECT statements, primary keys, integer types, and the basic idea of transactions. This chapter explains the PostgreSQL object that identity columns use to generate numbers.2 min readCREATE TABLE, INSERT, and SELECT statements, understand primary keys, and have a basic idea of transactions. It focuses on PostgreSQL's older serial syntax so that you can recognize existing schemas and maintain them safely.2 min readCREATE TABLE, INSERT, and SELECT statements, and that you understand primary keys and PostgreSQL integer types. You will create a table whose numeric ID PostgreSQL generates automatically.2 min readCREATE TABLE, INSERT, and SELECT statements, primary keys, and the basic idea of a transaction. This chapter focuses on how PostgreSQL handles values supplied for an identity column during INSERT.2 min readINSERT, primary keys, and PostgreSQL identity columns. This chapter focuses on reading the ID that PostgreSQL generates when you insert a row.2 min readCREATE TABLE, INSERT, primary keys, integer types, and basic transactions. This chapter focuses on how PostgreSQL handles an explicitly supplied value for an identity column.2 min readCREATE TABLE, INSERT, and SELECT statements, and that a primary key identifies each row. This chapter focuses on an important PostgreSQL distinction: an identity column generates values, but it does not automatically make those values unique.2 min readCREATE TABLE, INSERT, and SELECT, familiarity with primary keys, and a basic understanding of transactions. It also assumes you know that smallint, integer, and bigint are signed integer types.2 min readCREATE TABLE, INSERT, and primary-key syntax. You should also know that an identity column uses a PostgreSQL sequence to choose its next value.2 min readCREATE TABLE, INSERT, and SELECT statements, primary keys, integer types, and the basics of COMMIT and ROLLBACK. This chapter explains why an identity column can contain missing numbers.3 min readALTER TABLE, primary keys, and transactions. An identity column has two related parts:2 min readCREATE TABLE, INSERT, and SELECT, understand primary keys, know the smallint, integer, and bigint types, and have a basic understanding of transactions.2 min readCREATE TABLE, INSERT, and ALTER TABLE syntax. You should also understand primary keys and know that existing rows must keep their current IDs during the migration.2 min read