How to move the Cursor parameter for loop with the type of table?

Hi friends,
I wonder how to pass a parameter into the second loop in the code example below. Please see the "BOLD" statements and to answer my questions.
Thank you very much. Here's the code.

declare
l_bom_header_tbl BOM_BO_PUB. BOM_HEADER_TBL_TYPE; -TABLE TYPE
V_bom_header_tbl Bom_Bo_Pub.Bom_Head_Rec_Type: = Bom_Bo_Pub.G_MISS_BOM_HEADER_REC; -Record type
v_bom_components_tbl Bom_Bo_Pub.Bom_Comps_Tbl_Type: = Bom_Bo_Pub.G_MISS_BOM_COMPONENT_TBL; - nested table type
c: number = 0;
k: = 1 number;
Start
BOMPXINQ. () Export_BOM
P_org_hierarchy_name = > l_org_hierarchy_name,
P_assembly_item_name = > l_assembly_item_name,
P_organization_code = > l_organization_code,
P_alternate_bm_designator = > '1Test. "
P_Costs = > l_costs,
P_Cost_type_id = > l_cost_type_id,
X_bom_header_tbl = > l_bom_header_tbl,
X_bom_revisions_tbl = > l_bom_revisions_tbl,
X_bom_components_tbl = > l_bom_components_tbl,
X_bom_ref_designators_tbl = > l_bom_ref_designators_tbl,
X_bom_sub_components_tbl = > l_bom_sub_components_tbl,
X_bom_comp_ops_tbl = > l_bom_comp_ops_tbl,
X_Err_Msg = > l_Err_Msg,
X_Error_Code = > l_Error_Code);
If l_Error_Code = 0 then


because me in 1... l_bom_header_tbl. COUNTING LOOP
V_bom_header_tbl.organization_code: = "DSC";

Can assign us a table type of guy like below the registration statement?
V_bom_header_tbl.assembly_item_name: is l_bom_header_tbl (i) .assembly_item_name;.

k: = 1;

I want to pass the l_bom_header_tbl (i) .assembly_item_name parameter in the declaration below: How do I do this?
for j from 1... l_bom_components_tbl. COUNTING LOOP

Can assign us a table type of type array as below the statement?
v_bom_components_tbl (k). Assembly_Item_name: is l_bom_header_tbl (i) .assembly_item_name;.
k: = k + 1;
end LOOP;
end loop;
end;

Published by: ILovePlSql on March 22, 2010 07:51

Published by: ILovePlSql on March 22, 2010 08:16

ILovePlSql wrote:
V_bom_header_tbl emp % rowtype;

If v_bom_header_tbl has just two fields as ename, sal then also the assignment of type table, record type work or if the record type and the array type have the same structure?

Yes:

SQL> declare
  2      type Bom_Head_Rec_Type is record(ename emp.ename%type,sal emp.sal%type);
  3      type BOM_HEADER_TBL_TYPE is table of Bom_Head_Rec_Type index by binary_integer;
  4      l_bom_header_tbl BOM_HEADER_TBL_TYPE;
  5      V_bom_header_tbl emp%rowtype;
  6  begin
  7      select ename,sal bulk collect into l_bom_header_tbl from emp;
  8      for i in 1 .. l_bom_header_tbl.count loop
  9        V_bom_header_tbl.ename := l_bom_header_tbl(i).ename;
 10        V_bom_header_tbl.sal := l_bom_header_tbl(i).sal;
 11      end loop;
 12  end;
 13  /

PL/SQL procedure successfully completed.

SQL>  

SY.

Tags: Database

Similar Questions

  • How to: display a message while for loops, with no required user input

    Hi everyone, I'm relatively new to LabView, using 8.5.

    I want to display a message all in one for the loop runs, requiring no user input to delete the dialog box (that is to say, the box disappears after the end of the loop For).

    Any ideas?

    Thank you

    Darren


  • Can W7 \64 bit\FF42.0\How I move the profiles?

    Everything seems to work perfectly. But I realized that I should be able to find how to move my profile to another drive on my computer somewhere in the profile itself. I've looked everywhere I can think of and can't find this info. If you can tell me where it is, maybe I can manage. But if not, can you tell me how to move the profiles? My os is Windows 7 Pro 64 bit. I am running Firefox 42.0. Your guesses are all correct, except that I'm not sure about the plugin from Adobe. Thanks for any help.

    You can use the Profile Manager to create a new profile on a different hard drive folder by clicking on the button "choose a folder.
    Be sure to select a new empty file and not a folder that already contains files.

    You can transfer files from the current profile folder to this folder.

  • How to move the search return bar to the previous version?

    Using the latest update of Firefox gave me a new search bar, one where I can't change quickly, search engines to the contrary having to go into a menu to do so. This is detrimental for me since I use each search engine search suggestions, I installed. I can't do that. How to move the search return bar to the previous version?

    I found a solution. If you go in Subject: config, then find the browser.search.showOneOffButtons boolean and rocking that it restores the old functionality. (You may have to restart your browser)

    Note that, as always, to edit your subject: config at your own risk.

    credit: askvg.com

  • HOW TO MOVE THE FLAG POINT MAP, MIRCOSOFT 2013

    HOW TO MOVE THE FLAG POINT MAP, MIRCOSOFT 2013

    Hello

    It is not a Community Forum for MapPoint.

    Ask here

    Highway, Streets & Trips, MapPoint Forum:
    http://social.Microsoft.com/forums/en-us/streetsandtrips/threads

    Other Support options (not free)

    Support for MapPoint, streets & trips and Highway:
    http://support.Microsoft.com/ph/851

    Don

  • How to move the MSWMM files and keep the data on my computer?

    I downloaded digital film from my camera to a destination on my D drive as a file MSWMM (collections), and whenever I try to move the downloaded film (collection), it does not recognize the movie more.

    How to move the MSWMM files and keep the data on my computer?

    The mswmm file is the project file, not a video.
    Think of it as a recipe for a cake, it only tells you what to do with the ingredients, but does not include the ingredients.
    The mswmm file tells the computer to look in a certain folder to use a video or audio file.
    If you move the file, then MM knows not where is the file, then you must tell it, by right clicking on a red x on the timeline and then choose search for the file.

  • How to move the original system to the SSD newly installed without an optical drive?

    I want to buy a W530 and spare SSD upgrade.

    I want to order one without a DVD player.

    How to move the system of origin, drivers and other software for the SSD newly installed without an optical drive?

    Hope someone could help me. Thank you.

    The two utilities that I mentioned manage alignment automatically. Also, I photographed my hard drive, then restored the SSD. I have no clone, which means a direct copy of the HDD to the SSD.

    I just went through this myself in July, using Acronis True Image 2012 to get my existing on my 256 GB SSD mSATA HARD disk image. It worked like a charm. I checked that the SSD has been properly aligned.

    See:

    Migrate to SSD

    and:

    Check the alignment of SSD

    Now stop worrying!

  • How to move the FILE from one place to another and keep "Indexing" have to move to the unknown location so you can't discover its full file path? Windows instructions provide information wrong re: how to do this!

    Make a bunch of audio files, placed in a folder on my desktop. Files initially sent to RealPlayer to burn, but when finished burning CD and went to read a CD, folder got seized by Media Player, 'Indexed' and disappeared from the office. I'm a relatively new computer user, and I need to learn more about file paths, how to view the path FULL of a file on my computer and how to type (create) full path when I need to. The "Indexing" feature seems to erase this lesson for me, and after having spent four hours trying to find Vista instructions on "How to move the file from one place to another", I gave up! Windows 'Help and Support' on my computer gives wrong directions. It states that if I right click on a folder > properties, a dialog box opens with a tab by which I can move my account. There is no tab location here. I found locations tab when right click on the "Mobile" folder, but still no option to "move file". No idea what is the folder "Roaming" or why it's on my computer. I want my audio files in the My Music folder, but this place is "access denied." Don't know how to get the audio file it in any case, but if anyone has any advice, I would be very happy! Thank you. PS - I had no problem moving folders in XP. I don't like the idea that a computer is to decide where to put my files. I want to control where I put my files. I don't like the way search works under Vista. I liked the XP search companion better because, for a computer fool like me, it was really easy to organize and find files and folders and had an option specific to find audio and video file TYPES.

    Here is an article on how to move your personal folders in Vista: http://www.howtogeek.com/howto/windows-vista/moving-your-personal-data-folders-in-windows-vista-the-easy-way/.  If you're talking about the special folders (such as photos, Documents, office...), then here is an article on how to move: http://www.winhelponline.com/articles/95/1/How-to-move-the-special-folders-in-Windows-Vista.html.

    If you have trouble with the search after you move the files, then rebuild the index: http://www.tech-recipes.com/rx/2103/vista_rebuilding_the_search_index/.  Here is an article on how to use Indexing Options in Vista that may be useful for you: http://www.vistax64.com/tutorials/69581-indexing-options.html.

    If the above does not help, your problem seems to relate to the image of the files/folders and their interactions with Media Center (which operate on different other folders).  Please repost your question in images and video Forum at: http://social.answers.microsoft.com/Forums/en-US/vistapictures/threads where the people who specialize in issues of the image will be more than happy to help you with your quesitons.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to move the mouse position of puppetry, followed by position in photoshop?

    How to move the mouse position of puppetry, followed by position in photoshop?

    In Photoshop, handles (guides) are creating/editing mode shape with the pen tool. Select the layer with mousetrack in his name, and then in the pen tool, you should see a small "x" indicating the location of the handful of mousetrack. Press and hold the appropriate keyboard qualifier (for example, Ctrl on Windows) to select the 'x' and then drag it to the intended location.

  • How to move the index file...?

    I have files of data to index as follows...

    /U02/MY_TEST_DATA/indx01.dbf
    /U02/MY_TEST_DATA/indx02.dbf

    I'm running out of disk space available in u02.

    How to move the two files above to u03? I have a lot of space in u03.
    HP Unix, Oracle 10g R2.

    What I need to change other settings when I move the location of the file? for example, backup, archieve etc...

    Please advice.

    Thank you
    GISH

    Hello..

    Well you can do it in one of 2 ways: -.

    1 put the tablespace contains the data offline files, copy the data index files to the new location, and then change the database rename ' old/file/name/location of the file' to 'new/file/name/locatio. put storage space online. Completed successfully, remove the file data from the old location.

    2. in the hope that these two data files belongs to 1 tablespace and tablespace that contains only the index, you can create a tablespace with its data on the new mountpoint file again, then rebuild the index of aid (dynamic script)

    change owner.index_name tablespace new_tbs_name n parallel reconstruction;

    Once all the indexes have been moved to the new tablespace you can drop the previous old tablespace.

    I would prefer 1.

    HTH
    Anand

  • How to move the FLASH_RECOVERY_ARE file to new drive?

    Thank you for taking my questions!

    Does anyone know how to move the files from e:\oracle\flash_recovery_area\* to a new disk?

    Thank you
    Kathie

    THE OPERATION HAS FAILED:
    I created a new pfile.
    Edition pfile changing old drive to the new drive letter letter.
    immediate stop
    to the E:oracle\flash_recovery_area\ S:\oracle\flash_recovery_area\* *.
    startup nomount;
    Create spfile from pfile;
    stop immediately;
    startup

    Now I get ORA = 38760 - this database instance could not turn on the flashback database;

    Kathie,

    Try this by first editing the database

    1) First Turn off Flashback:
    
    SQL> alter database flashback off;
    
    Monitor alert log for messages regadring flashback:
    
    Then s turn the flashback on again.
    
    SQL> alter database flashback on;
    
    SQL> Alter database open;
    

    Concerning

  • In FF 29,0, how to move the address bar on the top of the tab bar?

    It's OK in Firefox 28 and less than the value of browser.tabs.onTop = false to move the address bar on the top of the tab bar. But at 29 of Firefox, I can't find the browser.tabs.onTop
    who can tell me how to move the address bar to the top of the tab bar?

    Read this article. This article will help you to customize Firefox commands, buttons, and toolbars.

  • I want to know how to move the cards while trying to play stings on pogo

    Original title:

    Pogo games

    Hello, it was a gift of birthday a week ago.   So, I'm new on a laptop that I think I'm from fresh all over again.   But here's my question: I want to know how to move the cards trying to play spades on pogo.  Don't know how to slide or push enter or even pushing the button on the finger.  Please help I really like playing Spades and pinochle.  Thank you

    You should ask in the forum games Pogo, not Microsoft.

    http://Games-Forum.Pogo.com/

  • HOW TO MOVE THE FLAGS IN MICROSOFT MAP POINT 2013

    HOW TO MOVE THE FLAGS IN MICROSOFT MAP POINT 2013

    I suggest that ask you in this Microsoft forum:

    Highway, streets and Trips, MapPoint .

    Thank you.

  • How to move the top of the screen (active form)

    Hi all

    How to move the top of the screen (active form),

    Suppose I have 5 screens in the battery, I want to make the screen at the bottom of the stack as Active (top screen) without pushing and poping

    Of the display is a battery.  To move round on screens requires push and pop, as it would to move items in a stack.  Sorry, if you want to see the screen that currently is the bottom of the stack, then you either have everything that is above him, the pop or pop and push up.

    But here, we are talking about instances of the screen, not the specific screen class.  To understand the difference here is an example.

    I have two screens in my application, a list screen and a detail screen.  My application starts with the list screen.  The user selects an item (X) and displays details on the subject using the details screen.  While displaying the detail, the user decides that he wants to see a different list.  So, we start a new instance of the list screen, showing a different list.  Then, the user decides to view some details of one of the items on the list (Y) and if the application displays a new instance of the details screen.

    So now that the user has 4 screens on the display stack.  The top of the screen is a detail showing the item detail screen, the screen below is an example of the display of the list, the screen under that is another detail screen, showing the point X this time, and under that is a list screen.

    Does that help?

Maybe you are looking for

  • Why flickr does not work with firefox

    I'm trying to copy images/textures on flickr via a right click on the photo. I don't get the option to see all the dimensions of the image and/or download it or copy the image. These aren't protected files, the owner is available for free to anyone w

  • Keyboard for Satellite A200 - 1 g - (PSAECE) - has stoped working

    Hello I have a problem. During the first round of time on my laptop, my laptop keyboard has no response (means any respons keys when I press on them). When I introduced external USB keyboard, laptop keyboard work.I have the latest version of bios and

  • My his laptop does not work

    everything done even a convenience store, I still does not work

  • How can I get a manual to understand Windows 7?

    Can someone tell me how I can print a manual for Windows 7 and how to use it?

  • Including several JSX files in the Panel

    I am trying to include several JSX files with my Panel and I followed this blog by Davide Barranca post:http://www.davidebarranca.com/2014/01/HTML-panels-tips-2-including-multiple-jsxExternal scripts are all evaluated very well, but when train to cal