Press "Enter" to skip to content

FIND_COLUMN built-in Oracle D2k

FIND_COLUMN built-in Oracle D2k

Searches the list of record group columns and returns a groupcolumn ID when it finds a valid column
with the given name. You must define an appropriately typed variable to accept the return value. Define
the variable with a type of GroupColumn.
(recordgroup.groupcolumn_name VARCHAR2);
Built-in Type unrestricted function
Returns GroupColumn
Enter Query Mode yes
recordgroup. groupcolumn_name Specifies the fully qualified VARCHAR2 record group column name.
FIND_COLUMN examples
** Built-in: FIND_COLUMN
** Example: Get column IDs for three columns in a record
** group before performing multiple Get’s or Set’s
** of the record group’s column values
PROCEDURE Record_Machine_Stats( mach_number NUMBER,
temperature NUMBER) IS
rg_id RecordGroup;
col1 GroupColumn;
col2 GroupColumn;
col3 GroupColumn;
row_no NUMBER;
rg_id := Find_Group(’machine’);
col1 := Find_Column(’machine.machine_no’);
col2 := Find_Column(’machine.parts_per_hour’);
col3 := Find_Column(’machine.current_temp’);
** Add a new row at the bottom of the ’machine’ record
** group, and make a note of what row number we just
** added.
Add_Group_Row( rg_id, END_OF_GROUP);
row_no := Get_Group_Row_Count(rg_id);
Set_Group_Number_Cell(col1, row_no, mach_number);
Set_Group_Number_Cell(col2, row_no, pph);
Set_Group_Number_Cell(col3, row_no, temperature);

Vinish Kapoor

I am a full stack developer and writing about development. I document everything I learn and help thousands of people. is created, written, and maintained by me, it is built on WordPress, and hosted by Bluehost. Connect with me on Facebook, Twitter, GitHub and get notifications for new posts.

You may also like:

Be First to Comment

    Leave a Reply

    Your email address will not be published. Required fields are marked *