列表 5. 一个三列表格的预约表

CREATE TABLE Appointments (
   person_id   INT4       NOT NULL,
   appt_when   TIMESTAMP  NOT NULL,
   notes       TEXT       NULL       CHECK (notes <>
''),

   UNIQUE(appt_when)
);
© . All rights reserved.