📜  主键 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:07.599000             🧑  作者: Mango

代码示例6
CREATE TABLE purchase_orders (
    po_nr NUMBER,
    vendor_id NUMBER NOT NULL,
    po_status NUMBER(1,0) NOT NULL,
    created_at TIMESTAMP WITH TIME ZONE NOT NULL,
    CONSTRAINT pk_purchase_orders PRIMARY KEY(po_nr)
);