我写了一个内部连接语句。表已显示,但我无法从 EMPLOYEES_IMPORT 表中编辑全名
我的问题是......我应该如何创建一个可以编辑所有表格字段的有吸引力的表单?
请给我任何提示,否则我会发疯的:(
我试图创建一个视图:
CREATE VIEW STAMP_TEST AS
SELECT s.STAMP_ID ,
s.PERSON_ID ,
hp.FULL_NAME,
h.DESCRIPTION
FROM STAMPS s
INNER JOIN EMPLOYEES_IMPORT hp ON s.PERSON_ID = hp.PERSON_ID
INNER JOIN DEPARTMENTS_IMPORT h ON hp.ORGANIZATION_ID = h.ORGANIZATION_ID
我想我不理解我的示例中的触发功能,因为我收到一个错误:
create or replace trigger trg_ed_seal_stamps
instead of insert or update
on STAMP_TEST
for each row
begin
if inserting then
insert into STAMPS (STAMP_ID, START_DT)
values (:new.SEAL_STAMP_ID, :new.START_DT);
insert into EMPLOYEES_IMPORT (FULL_NAME)
values (:new.FULL_NAME);
insert into DEPARTMENTS_IMPORT (DESCRIPTION)
values (:new.DESCRIPTION);
elsif updating then
update STAMPS set
STAMP_ID = :new.STAMP_ID
where PERSON_ID = :new.PERSON_ID;
update EMPLOYEES_IMPORT set
FULL_NAME = :new.FULL_NAME
where PERSON_ID = :new.PERSON_ID;
update HDEPARTMENTS_IMPORT set
DESCRIPTION = :new.DESCRIPTION
where ORGANIZATION_ID = :new.ORGANIZATION_ID;
end if;
end;
/
所以我设法创建了触发器,并且在 sql 语句中我可以更新值:)
但是当我用表格添加表格时,顶点仍然无法更新值
错误:
ORA-22816: unsupported feature with RETURNING clause
细节:
is_internal_error: false
component.type: APEX_APPLICATION_PAGE_PROCESS
component.id: 14401759410321665
component.name: Process form sds
error_backtrace:
----- PL/SQL Call Stack -----
object line object
handle number name
0x4255f33438 971 package body APEX_190100.WWV_FLOW_ERROR.INTERNAL_GET_ERROR
0x4255f33438 1039 package body APEX_190100.WWV_FLOW_ERROR.INTERNAL_ADD_ERROR
0x4255f33438 1092 package body APEX_190100.WWV_FLOW_ERROR.ADD_ERROR
0x40ffd4e4b0 593 package body APEX_190100.WWV_FLOW_PROCESS.ADD_ERROR_MESSAGE
0x4738108530 547 package body APEX_190100.WWV_FLOW_FORM_REGION.RAISE_ERROR_MESSAGE
0x4738108530 1185 package body APEX_190100.WWV_FLOW_FORM_REGION.DML_PROCESS_INT
0x4738108530 2198 package body APEX_190100.WWV_FLOW_FORM_REGION.DML_PROCESS
0x44b06ce5e8 1246 package body APEX_190100.WWV_FLOW_PROCESS_NATIVE.EXECUTE_PROCESS
0x448c6bff28 2473 package body APEX_190100.WWV_FLOW_PLUGIN.EXECUTE_PROCESS
0x40ffd4e4b0 203 package body APEX_190100.WWV_FLOW_PROCESS.PERFORM_PROCESS
0x40ffd4e4b0 450 package body APEX_190100.WWV_FLOW_PROCESS.PERFORM
0x472c9ca568 5726 package body APEX_190100.WWV_FLOW.ACCEPT
0x44b175fb00 2 anonymous block