Loading topic
SELECT, INSERT, UPDATE, and DELETE statements. You should also understand CREATE TABLE, common data types, primary keys, and foreign keys. You need access to a test database such as PostgreSQL, MySQL, SQL Server, or SQLite.2 min readALTER TABLE changes the definition of an existing table. This chapter assumes that you know basic SELECT, INSERT, UPDATE, and DELETE, and that you understand tables, columns, primary keys, and foreign keys.2 min readCREATE TABLE, SELECT, INSERT, and common constraints such as PRIMARY KEY and NOT NULL. This chapter uses PostgreSQL-style syntax. MySQL and SQLite usually accept the same ADD COLUMN form. SQL Server uses ADD without the word COLUMN.1 min readCREATE TABLE, INSERT, UPDATE, and basic constraints. Examples use PostgreSQL syntax. Other database systems use similar ideas, but they can differ in how they handle existing rows and schema changes.2 min readSELECT, INSERT, UPDATE, and DELETE, can create tables, and understand primary and foreign keys.2 min readSELECT, INSERT, UPDATE, and DELETE, can create tables, and understand primary keys and foreign keys. This chapter uses PostgreSQL examples. Other database systems use similar ideas but different syntax.2 min readSELECT, INSERT, UPDATE, and DELETE statements, can create tables, and understand primary keys and foreign keys.2 min readCREATE TABLE, INSERT, UPDATE, and DELETE, and that you understand primary and foreign keys. This chapter uses PostgreSQL-style syntax. Other database systems use similar ideas but may use different commands for dropping constraints.2 min readSELECT, INSERT, UPDATE, and DELETE statements, can create tables, and understand primary and foreign keys. This chapter focuses on removing a table and predicting what happens to objects that depend on it.2 min readSELECT, INSERT, UPDATE, and DELETE, and have used CREATE TABLE, primary keys, and foreign keys. This chapter focuses on making table-removal scripts safe to run more than once.2 min readSELECT, CREATE TABLE, primary keys, and foreign keys. A database object depends on a table when it uses that table and would become invalid if the table changed or disappeared.2 min readCREATE TABLE and DROP TABLE statements. A dependency is an object that uses another object. For example, a foreign key in orders depends on the customers table.2 min readSELECT, INSERT, UPDATE, and DELETE, and understand primary keys and foreign keys. This chapter uses PostgreSQL syntax where behavior differs between database systems.2 min readCREATE TABLE, ALTER TABLE, and transaction statements. A transaction is a group of database operations that succeeds together or is undone together.2 min readSELECT, INSERT, UPDATE, DELETE, CREATE TABLE, primary keys, and foreign keys. This chapter uses PostgreSQL, MySQL, SQL Server, and SQLite examples.2 min readALTER TABLE, transactions, primary keys, and foreign keys. This chapter assumes you can connect to a test database and inspect active sessions.3 min readSELECT, INSERT, UPDATE, and DELETE, can create tables, and understand primary and foreign keys. This chapter focuses on changing a live schema without losing data or unexpectedly blocking application traffic.2 min read