建立 PostgreSQL 資料庫
Darryl Reeves
Industry Assistant Professor, New York University

為資料庫使用者提供各自的環境

將資料庫物件依關聯分組

public 是 PostgreSQL 的預設 schemaCREATE TABLE topic (
id serial PRIMARY KEY,
description TEXT NOT NULL
);
public.topic
CREATE SCHEMA schema_name;
CREATE SCHEMA division1;
CREATE TABLE division1.school (
id serial PRIMARY KEY,
name TEXT NOT NULL,
mascot_name TEXT,
num_scholarships INTEGER DEFAULT 0
);
建立 PostgreSQL 資料庫