Oracle Forms Execute_Query Example To Fetch The Records From Database

Execute_Query command is used to fetch all the records for current database data block in Oracle Forms, actually its executes query in current data block.

Syntax

EXECUTE_QUERY;

Clears the current block, opens a query, and fetches a number of selected records.

EXECUTE_QUERY (keyword_one VARCHAR2);

EXECUTE_QUERY(ALL_RECORDS) performs the same actions as EXECUTE_QUERY but Oracle Forms fetches all of the selected records.

EXECUTE_QUERY(keyword_two VARCHAR2);

EXECUTE_QUERY(ALL_RECORDS, FOR_UPDATE) performs the same actions as EXECUTE_QUERY but it lock all of the selected records immediately and fetches all of the selected records.

EXECUTE_QUERY(keyword_one VARCHAR2, keyword_two VARCHAR2);

EXECUTE_QUERY(keyword_one VARCHAR2, keyword_two VARCHAR2, locking VARCHAR2);

Can be set to NO_WAIT anytime that you use the FOR_UPDATE parameter. When you use NO_WAIT, Oracle Forms displays a dialog to notify the operator if a record cannot be reserved for update immediately. Without the NO_WAIT parameter, Oracle Forms keeps trying to obtain a lock without letting the operator cancel the process.

Example

BEGIN
Go_Block(‘yourblock‘);
Execute_Query;
END;

Earlier I have given many example to perform query in Oracle Forms and below are the links that you can check for more details.

Define Custom Query Criteria Before Performing Query In Oracle Forms

If Value Exists Then Query Else Create New Record Example Oracle Forms

Sorting Data Block On Query in Oracle Forms

时间: 2024-10-16 01:56:12

Oracle Forms Execute_Query Example To Fetch The Records From Database的相关文章

Create Hierarchical Tree To Control Records In Oracle Forms

Download Source Code Providing an example form for creating hierarchical trees in Oracle Forms to control data block records. In this form whenever user selects any node in tree menu then corresponding record is displayed at right side. This form is

Enter Query Mode Search Tricks Using Enter_Query Built-in in Oracle Forms

In this post you will learn how to specify any condition in enter query mode of Oracle Forms. Whenever Enter_Query command executes Oracle Forms comes into enter query mode and in that mode you can specify some criteria to filter the records and afte

Define Custom Data Filter Using Pre-Query Trigger In Oracle Forms

Oracle Forms is having its default records filter, which we can use through Enter Query mode to specify some search criteria or to filter records before display, but you can also create your own filter, which can be more user friendly and easy to use

Using CLEAR_BLOCK To Prevent Save Confirmation Dialogs In Oracle Forms

Clear_Block built-in clears all records from the current data block and if the user had made some changes in records which have not been committed, then Oracle Forms processes the records depending on the argument passed to the Clear_Block procedure.

An Example of On-Error Trigger in Oracle Forms

I wrote this trigger around 4 years ago to handle errors in an application based on Oracle Forms 6i. This trigger handles all errors with some custom messages for some specific errors and not only this after giving an appropriate message to the user

Moving From Top To Bottom in Detailed Block in Oracle Forms

Suppose you want to scan a tabular grid block (loop through all records in detail block) from top to bottom in Oracle forms. You can do this task by using :system.last_record system variable to determine whether it is last record in a block and then

Displaying Modal Window Messages in Oracle Forms Using Show_Alert

You can display modal windows in Oracle Forms to display normal messages, error message or asking for confirmation eg. on deleting a record or saving a record etc. using show_alert command. These modal window messages can be shown using Alert option

Pre-Query trigger in Oracle D2k / Oracle Forms

Pre-Query trigger in Oracle D2k / Oracle Forms DescriptionFires during Execute Query or Count Query processing, just before Form Builder constructs and issuesthe SELECT statement to identify rows that match the query criteria.Definition Level form or

Pre-Update and Pre-Insert Trigger Examples For Oracle Forms

See also: Why And When To Use Pre-Update and Pre-Insert Triggers In Oracle Forms Pre-Update Fires during the Post and CommitTransactions process, before a row is updated in Oracle Forms. It fires once for each record that is marked for update. The fo