Appearance
表
建表。
CREATE TABLE products (
id INTEGER GENERATED ALWAYS AS IDENTITY PRIMARY KEY,
name VARCHAR(100) NOT NULL,
price MONEY NOT NULL,
description TEXT NOT NULL
);CREATA TABLE查看表。
\dtList of relations| Schema | Name | Type | Owner |
|---|---|---|---|
| public | products | table | postgres |