我正在使用 PostgreSQL 并创建了下表:
CREATE TABLE "TrainingMatrix"
(
payroll text NOT NULL,
"TrainingName" text NOT NULL,
"Institute" text,
"TrainingDate" date NOT NULL,
"ExpiryDate" date,
"RecorderName" text,
"EnteringDate" date,
CONSTRAINT "TrainingMatrix_pkey" PRIMARY KEY (payroll, "TrainingName", "TrainingDate")
)
我想让EnteringDate
机器中的当前日期自动填充每个输入的记录。