早安 我有基于表 'A' 的 Apex 页面(表单) 并需要添加非数据库'Checkbox', 如果此复选框为“Y”,则将数据插入表“B” 如果复选框为“N”,如果找到,则从表“B”中删除数据
所以我添加类型为“执行 Pl 代码”的进程
if :P1_checkbox = 'Y' then
delete from b where code = :P1_code ;
insert into b (code , topic ) values ( :P1_code, :P1_topic) ;
elsif (:P1_checkbox = 'N' ) then
delete from b where topic = :P1_code ;
end if ;
但是它不工作,没有给出错误 还有别的办法吗!!
提前致谢
所以我添加类型为“执行 Pl 代码”的进程
if :P1_checkbox = 'Y' then
delete from b where code = :P1_code ;
insert into b (code , topic ) values ( :P1_code, :P1_topic) ;
elsif (:P1_checkbox = 'N' ) then
delete from b where topic = :P1_code ;
end if ;