串接 LOV
串接兩個 LOV, 第一個 LOV 的值會決定第二個 LOV 的可顯示值
Last updated
串接兩個 LOV, 第一個 LOV 的值會決定第二個 LOV 的可顯示值
Last updated
-- create tables
create table hy_time_period (
time_no number generated by default on null as identity
constraint hy_time_period_time_no_pk primary key,
time_label varchar2(4000 char)
)
;
-- comments
comment on column hy_time_period.time_label is '時段標籤';
comment on column hy_time_period.time_no is '時段編號';
-- load data
-- Generated by Quick SQL Wednesday July 12, 2023 14:06:35
/*
# prefix: "hy"
time_period
time_no num /pk -- 時段編號
time_label vc -- 時段標籤
# settings = { prefix: "HY", PK: "IDENTITY", semantics: "CHAR", language: "EN", APEX: true }
*/insert into hy_time_period values (1, '08:00');
insert into hy_time_period values (2, '08:30');
insert into hy_time_period values (3, '09:00');
insert into hy_time_period values (4, '09:30');
insert into hy_time_period values (5, '10:00');
commit;select TIME_LABEL as disp_val,
TIME_NO as ret_val
from HY_TIME_PERIODselect time_label as dis_val,
time_no as ret_val
from hy_time_period
where time_no > :P6_START_TIME and time_no <= :P6_START_TIME + 4