How do i get the value in a variable that I don't know the name of til run

I have a record type( pr_team) defined in a package - anchored to a table.
I want to be able to go through each of the fields in it one at a time. I get the list of fields from the table definition from cursor as follows
CURSOR c_fields IS
SELECT column_name
FROM all_tab_cols
WHERE owner = 'CDS'
AND table_name = 'TEAM';
r_fields c_fields%ROWTYPE;
So first returned value is team_id
how can I get this value when all I know the field name is 'pr_team.' || r_fields.column_name
cheers
Simon

Oracle Database 10g Express Edition Release 10.2.0.1.0 - Production
SQL> CREATE OR REPLACE PACKAGE package_name
  2  AS
  3     r_emp emp%ROWTYPE;
  4  END package_name;
  5  /
Package created.
SQL> SET SERVEROUTPUT ON SIZE UNLIMITED;
SQL> DECLARE
  2     v_empno emp.empno%TYPE;
  3     v_ename emp.ename%TYPE;
  4  BEGIN
  5     SELECT *
  6     INTO   package_name.r_emp
  7     FROM   emp
  8     WHERE  ROWNUM = 1;
  9
10     EXECUTE IMMEDIATE
11        'BEGIN ' ||
12        '   :v_empno := package_name.r_emp.empno; ' ||
13        '   :v_ename := package_name.r_emp.ename; ' ||
14        'END;'
15        USING OUT v_empno, OUT v_ename;
16
17     DBMS_OUTPUT.PUT_LINE ('v_empno => ' || v_empno);
18     DBMS_OUTPUT.PUT_LINE ('v_ename => ' || v_ename);
19  END;
20  /
v_empno => 7369
v_ename => SMITH
PL/SQL procedure successfully completed.
SQL>

Similar Messages

  • I have a Macbook Pro early 2011. i don't have AirPlay on my computer. How can I get it. I have read that early 2011 should have the AirPlay option. Any ideas please.

    I have a Macbook Pro early 2011. i don't have AirPlay on my computer. How can I get it. I have read that early 2011 should have the AirPlay option. Any ideas please.

    Hi All,
    I need your expert advice to proceed. I bought apple TV and it works fine with my iPad and iPhones also fine with itune of my Mac Book Pro BUT I am not seeing setting which says "Airplay Mirroring" in system preference -> Display at all.
    I checked my mac serial number and it shows the model as below. As far as I understood this feature should be there from 2011 onwards.
    MacBook Pro (13-inch, Late 2011)
    Software  Mac OS X Lion 10.7.5 (11G63b)
    Please suggest!!
    Thanks and Regards

  • How do I disconnect my phone number from an Apple ID that I don't know the PW to?? Thanks!!

    Hi everyone! How do I disconnect my phone number from an Apple ID that I don't know the PW to?? I am trying to help my friend - she got divorced from her husband who has her phone number under his Apple ID. He claims he doesn't remember the PW and that Apple couydn't help him?! Any thoughts? Thanks!!

    1. He is lying.
    2. Require him to buy her a new iPhone in the settlement.

  • I am using a different divice than normal and because if security it is asking me questions that I don't know the answers to, so I get them wrong.

    I am using a different divice than normal and because if security it is asking me questions that I don't know the answers to, so I get them wrong.

    Click here for information. If the option to have the answers emailed to you isn't available or doesn't work(the email may take a few hours to arrive), contact the iTunes Store staff via the link in the 'Additional Information' section of that article.
    Nobody on these boards can reset them for you.
    (92406)

  • How can I activate my iPad when it has an old iCloud adress that I don't know the password for it?

    How can I activate my iPad when it has an old iCloud adress that I don't know the password for it?

    Click here and reset the password. If you've forgotten the Apple ID, you can recover it from the same site.
    (112195)

  • Please can someone help, I have a question in my coursework that I don't know the answer to! Explain how PostScript fits into the design process?

    Please can someone help, I have a question in my coursework that I don't know the answer to! Explain how PostScript fits into the design process?

    The simple answer is that today PostScript really doesn't fit at all into the Graphic Design process, at least in terms of what the graphic designer needs to know.
    Historically, though, the PostScript imaging model, first introduced circa 1984 provided the basis for the initial publishing software including PageMaker, Illustrator, QuarkXPress, and even Ventura Publisher. This imaging model included support for continuously scalable text, vector, and raster imagery as well as the concepts of a current transformation matrix that allowed arbitrary scaling, rotation, etc. and multiple color spaces (grayscale, RGB, CMYK, spot, device independent, and color-managed).
    The PostScript imaging model was effectively replaced by the PDF imaging model, a significant superset of the PostScript imaging model, by the time Illustrator 9 and InDesign 2 were released in terms of support of ICC color management, transparency, etc.
    The fact is that a good graphic designed doesn't need to know anything about PostScript or PDF per sé, but rather about the basics of color (such as issues associated with color gamut and what how that affects display and printing), use of text versus vector versus raster images and why one should keep content at the highest level of abstraction all the way to the rendering (or screen) or RIP process for printing. Some knowledge of typography also helps.
              - Dov

  • HT204266 Itunes store says I have never made purchases from this computer (I have, many times) and is asking security questions that I don't know the answers to.  What next?

    Hi All!  1st time I have had this problem:  Itunes store says I have never made purchases from this computer (I have, many times) and is asking security questions that I don't know the answers to.  What next?  If I keep missing the questions, it is threatening to lock me out of my account.  I am sad.

    Click here for information. If you can't get the answers emailed to you for some reason, contact the iTunes Store staff via the link in that article.
    (75608)

  • How do I install lion on a MacBook pro if I don't know the password?

    I know what you're thinking, "if you don't know the password, it's probably not yours." I'm actually a go-to guy for pawn shops when they get electronics. The guy pawned his laptop and didn't pay to retrieve it. It is now property of the pawn shop but they initially forgot to ask the guy for the password and now he won't reveal it to us.
    I want to wipe the computer and install the latest os on it. Can you please tell me the simplest way? It automatically logs in when starting up and I'm able to download lion but I think it's going to ask me for a password. I could be wrong though.

    Did you get the Mac OS X install disks from the pawnshop, perchance? If not, you'll need to call Apple tech support and order a set, or if the MBP is an older one that didn't come with Snow Leopard, a retail copy of the Snow Leopard installer. Then you can boot from that installer disk, erase the drive (highly recommended), install SL and upgrade to Leopard. Or you can buy the Lion installer on a USB flash drive, boot from that, and again erase the drive and install.
    Regards.

  • Can you change the value of a variable that is reset by a parameter?

    Sorry if this is simple but I just crashed a package and can't do an autopsy. I suspect I sent it into an infinite loop. I know you can't change the value of any passed in parameters. What I tried to do was have the parameter set the value of a variable
    and then I tried to change the value of the variable. Is that even allowed?
    I was trying to do this:
    MyCheckVariable = MyParameter (which equals true)
    (some cool stuff happens)
    MyCheckVariable = False
    I hit F5 and my package turned into the Energizer Bunny. Is the way I try to reset the variable the culprit?

    This is a prototype so I just created a project parameter and set it to true. In the real world the parameter will be used to control an optional part of the process because on a re-run after error that part doesn't have to be ran again.
    So when I say MyCheckVariable = MyParameter (which equals true) in reality what I actually have is in the variables window I'm using an expression and it looks like this in the variables window
    name = runDownload
    Scope = Package
    Data Type = Boolean
    Value = True (but greyed out)
    Expression = @[$Project::param_runDownload]

  • HT1725 When I type in my apple ID to download a song it says it needs additional info for security, and then it asks me two questions that I don't know the answers to. What do I do?

    When I type in my apple ID password to download a song it says it needs additional information so I clicked ok. And then it asked me two security questions that I don't remember the answers to. What do I do? I'm so frustrated

    Forgotten Security Questions/Answers
    You need to contact Apple by:
    1 - Use the Express lane and start here:
    https://expresslane.apple.com
    then click More Products and Services>Apple ID>Other Apple ID Topics>Forgotten Apple ID security questions.
    or
    Apple - Support -form iTunes Store - Contact Us
    2 - Call Apple in your country by getting the number from here:
    http://support.apple.com/kb/HE57
    or           
    Apple ID: Contacting Apple for help with Apple ID account security
    3 - Use your rescue email address if you set one up
    Rescue email address and how to reset Apple ID security questions
    For general  information see:
    Apple ID: All about Apple ID security questions

  • I forgot my rescue email and cannot change my password because I need t answer security questions that I don't know the answer to! I need help!

    I can't change my password! I don't know the answers to my security questions and the recuse email I put in years ago may not even exist. I need help!

    You need to ask Apple to reset your security questions; this can be done by phoning AppleCare and asking for the Account Security team, or clicking here and picking a method, or if your country isn't listed in either article, filling out and submitting this form.
    They wouldn't be security questions if they could be bypassed without Apple verifying your identity.
    (107060)

  • HT1414 How do you even get the iPad to show up in iTunes if it is locked?  It keeps saying that it can't open the device without the passcode... I don't understand how I am suppose to get into iTunes to fix it when the problem is that I don't know the pas

    Can anyone please help?  Thank you!

    You need to use recovery mode and this explains how to do it. You will lose everything on the iPad and will have to either sync with iTunes to get all of your content back or download it all again using the purchased tabs in the iStores on the iPad.
    http://support.apple.com/kb/ht4097
    Or you can follow these Instructions
    Disconnect the USB cable from the iPad, but leave the other end of the cable connected to your computer's USB port.
    Turn off iPad: Press and hold the Sleep/Wake button for a few seconds until the red slider appears, then slide the slider. Wait for iPad to turn off.
    If you cannot turn off iPad using the slider, press and hold the Sleep/Wake and Home buttons at the same time. When the iPad turns off, release the Sleep/Wake and Home buttons.
    While pressing and holding the Home button, reconnect the USB cable to iPad. When you reconnect the USB cable, iPad should power on.
    Continue holding the Home button until you see the "Connect to iTunes" screen. When this screen appears you can release the Home button.
    If necessary, open iTunes. You should see the recovery mode alert that iTunes has detected an iPad in recovery mode.
    Use iTunes to restore iPad.

  • How do I get rid of an error message that comes up on opening the Photoshop Elements 8 Organizer?

    When I double-click on the Adobe Photoshop Elements 8 desktop icon,
    an error messsage appears. The title line says:
    OWL ORPHANAGE: PhotoshopElementsEditor.exe - System Error
    Then the message ;
    The program can't start because CoreFoundation.dll is missing from your computer.  Try reinstalling the program to fix this problem.
    I did deactivate, uninstall, and reinstall the program. Still got this message.
    When I click OK the error message flickers, then reappears. I click again, same thing. 3rd click, the message disappears and the Organizer opens.
    I can get Elements 8 to open, but why this message first, and is there a way to either download the missing file or just get rid of the message?
    I did do a computer search and there is no CoreFoundation.dll on my computer.

    Hi, John
    I downloaded the most recent QuickTime as you suggested, Restarted my computer, but the message is still coming up when I go to the Editor.

  • TS3297 the iTunes store is making me answer security questions that I don't know the answer to and it won't let me purchase music if I don't answer the questions so what should I do?

    Please help me I just purchased an iTunes card and I want to use it immediatly

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then you can try going to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you might see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then see if the instructions on this user tip helps you get them reset : https://discussions.apple.com/docs/DOC-4551

  • TS1702 Asking for security question to be answered that I don't know the answer to.

    Itunes is asking fo security questions to be answered that I don't seem to know the answers to. Need help fixing this problem.

    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then you can try going to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you might see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address then see if the instructions on this user tip helps : https://discussions.apple.com/docs/DOC-4551

Maybe you are looking for

  • Adobe Premiere Pro no longer opening on my Mac

    I have Adobe Premiere Pro CC 2014 on my Mac. My monthly subscription doesn't end until late November. I've been using Adobe Premiere Pro for over a month with no problems; lately, the playback has been slower, but I figured this was due to my slow ha

  • Oracle bug 7046751

    After experiencing a Spatial query problem with my companies software due to Oracle bug 7046751, I was instructed by Oracle to run the SQL below to recreate ALL_SDO_GEOM_METADATA as a workaround. This worked fine and I could then use our software wit

  • SNMP traps not capture in SCOM

    we required to capture traps sent from the proofpoint(linux base) device - snmp v2 and display on SCOM but it does not work. we can saw the traps reach SCOM by using network trace. 

  • How can I add attachment files – or photos – to my created Adobe reader XI files?

    How can I add attachment files – or photos – to my created Adobe reader XI files?

  • Fast writes enabled in BIOS but not in Windows 2000

    WPCID and SiSoft Sandra report that fast writes is disabled despite being enabled in BIOS.  When fast writes are enabled with NVMax, all games crash within 30 seconds.