ebs不能为更新或删除保留记录
ebs11.0的form二次开发,在块的触发器on-update中加入更新语句,
update sdcd.zdeco_head_all
set zdeco_head_id = 104707,
zdeco_head_number = 'lyh_00006',
STATUS_TYPE = '制单'
where zdeco_head_id = 104707
;
----此语句在pl/sql developer2000中可执行
运行程序,新增一条记录,此记录会产生zdeco_head_id=104707
单号zdeco_head_number输入:lyh_00006,变更状态STATUS_TYPE输入:新建
按工具栏上的保存按钮,显示新增成功。
在窗口'变更状态'栏位(STATUS_TYPE字段),想把'新建'改为'制单',刚输入'制',就弹出窗口提示:
FRM-40501:ORACLE错误:不能为更新或删除保留记录.
---------------------------------------
ORA-00904:无效列名
这是什么原因呢,哪位帮帮忙呀??????????????????
表结构如下:
-- Create table
create table SDCD.ZDECO_HEAD_ALL
(
ZDECO_HEAD_ID NUMBER not null,
ZDECO_HEAD_NUMBER VARCHAR2(15),
STATUS_TYPE VARCHAR2(10) not null
)
tablespace DEVELOPD
pctfree 10
pctused 40
initrans 1
maxtrans 255
storage
(
initial 560K
next 56K
minextents 1
maxextents 500
pctincrease 0
);
-- Create/Recreate primary, unique and foreign key constraints
alter table SDCD.ZDECO_HEAD_ALL
add unique (ZDECO_HEAD_NUMBER)
using index
tablespace DEVELOPX
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 168K
next 56K
minextents 1
maxextents 500
pctincrease 0
);
-- Create/Recreate indexes
create index SDCD.ZDECO_HEAD_ALL_ID on SDCD.ZDECO_HEAD_ALL (ZDECO_HEAD_ID)
tablespace DEVELOPX
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 112K
next 56K
minextents 1
maxextents 500
pctincrease 0
);
ebs11.0的form二次开发,在块的触发器on-update中加入更新语句,
update sdcd.zdeco_head_all
set zdeco_head_id = 104707,
zdeco_head_number = 'lyh_00006',
STATUS_TYPE = '制单'
where zdeco_head_id = 104707
;
----此语句在pl/sql developer2000中可执行
运行程序,新增一条记录,此记录会产生zdeco_head_id=104707
单号zdeco_head_number输入:lyh_00006,变更状态STATUS_TYPE输入:新建
按工具栏上的保存按钮,显示新增成功。
在窗口'变更状态'栏位(STATUS_TYPE字段),想把'新建'改为'制单',刚输入'制',就弹出窗口提示:
FRM-40501:ORACLE错误:不能为更新或删除保留记录.
---------------------------------------
ORA-00904:无效列名
这是什么原因呢,哪位帮帮忙呀??????????????????
表结构如下:
-- Create table
create table SDCD.ZDECO_HEAD_ALL
(
ZDECO_HEAD_ID NUMBER not null,
ZDECO_HEAD_NUMBER VARCHAR2(15),
STATUS_TYPE VARCHAR2(10) not null
)
tablespace DEVELOPD
pctfree 10
pctused 40
initrans 1
maxtrans 255
storage
(
initial 560K
next 56K
minextents 1
maxextents 500
pctincrease 0
);
-- Create/Recreate primary, unique and foreign key constraints
alter table SDCD.ZDECO_HEAD_ALL
add unique (ZDECO_HEAD_NUMBER)
using index
tablespace DEVELOPX
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 168K
next 56K
minextents 1
maxextents 500
pctincrease 0
);
-- Create/Recreate indexes
create index SDCD.ZDECO_HEAD_ALL_ID on SDCD.ZDECO_HEAD_ALL (ZDECO_HEAD_ID)
tablespace DEVELOPX
pctfree 10
initrans 2
maxtrans 255
storage
(
initial 112K
next 56K
minextents 1
maxextents 500
pctincrease 0
);
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货