第一步:
创建一个表格holiday用于灵活存放节假日日期(周末除外),如果和周末日期重复,则无需添加到该表格中:
-- Create table
create table HOLIDAY
(
id VARCHAR2(45) not null,
hl_date DATE,
hl_desc VARCHAR2(500),
remark VARCHAR2(500)
)
tablespace AHDATA
pctfree 10
initrans 1
maxtrans 255
storage
(
initial 64K
next 8K
minextents 1
maxextents unlimited
);
-- Add comments to the table
comment on table HOLIDAY
is '节假日日期表(不含周末)';
-- Add comments to the columns
comment on column HOLIDAY.id
is '节假日编号';
comment on column HOLIDAY.hl_date
is '节假日期';
comment on column HOLIDAY.hl_desc
is '假日说明';
comment on column HOLIDAY.remark
is '备注';
-- Cr