Home Database Mysql Tutorial Oracle Form中COMMIT的概述及使用技巧

Oracle Form中COMMIT的概述及使用技巧

Jun 07, 2016 pm 05:56 PM
commit form

针对form上面的数据变动提交到后台数据库,同时数据库提交数据,接下来将详细介绍下Form中COMMIT的使用,感兴趣的你可以参考下本文

1. COMMIT_FORM和COMMIT
都对form和数据库进行提交。针对form上面的数据变动提交到后台数据库,同时数据库提交数据。

2. DO_KEY('COMMIT_FORM')
它会首先执行KEY-COMMIT触发器里面的代码,如果没有这个触发器,则会做COMMIT_FORM一样的操作。

3. FORMS_DLL('COMMIT')
只针对代码中insert、update、delete语句进行提交,form上面的数据不提交。
DG 里面提到:
Replace COMMIT with do_key('commit_form'), This routine raises the exception FORM_TRIGGER_FAILURE if there is an invalid record.
COMMIT时触发器执行顺序:
(1).KEY-COMMIT
(2).PRE-COMMIT
(3).PRE/ON/POST DELETE
(4).PRE/ON/POST UPDATE
(5).PRE/ON/POST INSERT
(6).ON-COMMIT
(7).Post DataBase Commit

4. QUIETCOMMIT
oracle form "悄悄" 提交。如果使用commit_form的话会弹出信息提示"没有修改需要保存"或者"XXX记录已保存"。如果你不想提示出现,则可以调用函数
app_form.quietcommit。由于是一个function, 所以需要定义一个变量用来接收返回值, 返回值类型为boolean,当true的时候就说明成功, 否则commit失败。
将系统的消息级别改为较低级别也可调用如下过程:
代码如下:
PROCEDURE docommit IS
old_level VARCHAR2(2);
BEGIN
old_level := name_in('system.message_level');
copy('5', 'system.message_level');
COMMIT;
copy(old_level, 'system.message_level');
END;
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks ago By 尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
3 weeks ago By 尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

What is the difference between slow commit in MySQL slow query and slow transaction in binlog? What is the difference between slow commit in MySQL slow query and slow transaction in binlog? May 30, 2023 am 08:07 AM

1. Source of the problem When analyzing performance problems, slow queries and binlog slow transactions are commonly used methods. Recently, I was analyzing a slow query and found that it contained a large number of commit statements that were slow, but the matching could not be completed when analyzing the binlog slow transactions. For example, there may be 1,000 commit statements during this period, but there may be only 100 slow transactions. This is too big a difference, so why does this phenomenon occur? 2. The respective determination methods for slow transactions are usually as follows for an explicitly submitted (insert) transaction: GTID_LOG_EVENT and XID_EVENT are the time when the command ‘COMMIT’ is initiated.

BinaryX is renamed FORM again, and the FOUR it gives to the community is about to soar? BinaryX is renamed FORM again, and the FOUR it gives to the community is about to soar? Mar 04, 2025 pm 12:00 PM

BinaryX's token name change: from BNX to FOUR, and then to FORM, the deep meaning behind strategic adjustments BinaryX recently changed the token symbol from $FOUR to $FORM, which has attracted widespread attention from the industry. This is not the first time BinaryX has changed its name, and its token symbol has undergone a transition from BNX to FOUR. This article will explore in-depth the strategic intentions behind this series of name change. 1. Token name change process and strategic considerations BinaryX initially launched the $BNX token based on the BNB chain in 2021 to support its Play-to-Earn (P2E) gaming ecosystem. In early 2024, in order to optimize the economic model, BinaryX divided $BNX and gradually expanded to GameF

How to undo a commit in git How to undo a commit in git Jul 24, 2023 pm 01:33 PM

How to undo a commit submitted by git: 1. Modify the content of the last commit. If you find that there is an error in the last commit, you can use the "git commit --amend" command to modify it; 2. Undo the changes of a commit, If you need to completely undo a commit and its corresponding changes, you can use the "git revert" command; 3. If you need to completely roll back to the state before a commit, you can use the "git reset" command.

How to solve the problem of being unable to call commit in PHP projects How to solve the problem of being unable to call commit in PHP projects Mar 06, 2024 am 08:30 AM

How to solve the problem of being unable to call commit in PHP projects. In the process of developing PHP projects, we often encounter situations where we need to call external services or APIs and perform corresponding operations based on the returned results. However, sometimes we encounter trouble when calling the commit operation and cannot execute it normally. This article will introduce in detail how to solve the problem of being unable to call commit in PHP projects, and provide specific code examples to help developers quickly solve this problem. Problem analysis: In PHP projects, when external services need to be called

Can there be multiple forms in html5? Can there be multiple forms in html5? Aug 01, 2022 pm 05:28 PM

There can be multiple forms in html5. The rules allow multiple form tags to be used in the same HTML page. However, in order to prevent the backend from not recognizing it when submitting, you need to add different IDs or classes to the form. The syntax is "<from action="url" id=" id value 1">Form element</from><from action="url" id="id value 2">Form element</from>.....".

What is the tag that defines the form in html5 What is the tag that defines the form in html5 Jul 26, 2022 pm 04:26 PM

The tag defining a form in HTML5 is "<form>". The form tag is used to create an HTML form (form field) for user input to collect and transfer user information. All content in the form will be submitted to the server; the syntax "<form action="Submit Address" method="Submit Method " name="form name">form control</form>". A form can contain one or more form elements, such as input, select, and textarea.

Comprehensively organize elements related to form forms! Comprehensively organize elements related to form forms! Aug 05, 2022 am 11:45 AM

This article gives you a detailed summary of the knowledge points related to form elements in HTML. I hope it will be helpful to you!

What to do if you encounter the problem that commit cannot be called in a PHP project What to do if you encounter the problem that commit cannot be called in a PHP project Mar 04, 2024 pm 05:39 PM

When you encounter the problem of being unable to call commit in a PHP project, it may be caused by errors in the code, insufficient permissions, or version control tool configuration issues. When encountering such problems, you can gradually check and solve them through the following methods: 1. Check for code errors. First, you need to check whether there are grammatical errors, logical errors or other errors related to the submitted code in the code. For example, when using Git as a version control tool, submission may not be possible due to file conflicts, unstaged files, etc. Therefore, you can check

See all articles