How to get the value of the variable at run time

Hello Experts,

I have a select statement where one of the column name is a variable I need to assign to the execution.

How can I do and is this really possible?

For example
x = 3

select
x,
a,
b,
c
from xxx

The OP wrote: "where one of the column name is variable."

To the OP... to do this, you MUST use dynamic SQL statements.

Your choice is:
Native dynamic SQL: http://www.morganslibrary.org/reference/nds.html
DBMS_SQL package: http://www.morganslibrary.org/reference/dbms_sql.html
Weakly typed Ref Cursor: http://www.morganslibrary.org/reference/ref_cursors.html

Tags: Database

Similar Questions

  • I use CS5.1 and cannot open it all at once. I get the prompt to get the SC6 JAVA run-time inheritance.  I installed, but still cannot open Photoshop. Any ideas?

    I use CS5.1 and cannot open it all at once. I get the prompt to get the SC6 JAVA run-time inheritance.  I installed, but still cannot open Photoshop. Any ideas?

    Would you please install Adobe Application Manager from the link below, then try again to install the application again:

    Adobe - Adobe Application Manager: for Macintosh: Adobe Application Manager

    ~ Sarika

  • How to get the variable 'dn' in a script

    Hello

    I have a problem, get the variable "dn" of the script is not a "public" variable, but I'm able to see in the log file. I bet it's in an object java somewhere - I don't know how to access it. No one knows how to get it. I have attached some of the newspaper:)

    CN = 8485 [5-6] XX, dn = 8485601 = 9812 cgn, ani = null, dnis = null, clid = null, atype = FORWARD_ALL lrd = 9817, ocn = 9817,

    I have a similar problem but I did not find the repo. package... Where?

    Thank you

  • How to get the variable substitution essbase in ODI

    Hi all
    I have a problem that I need to get the variable substitution of Essbase /EAS to work on a SQL in ODI.
    How can I do in ODI?
    Thank you all for...

    Thomas

    Hello

    If you read my blog:-http://john-goodwin.blogspot.com/2009/11/odi-series-planning-11113-enhancements.html
    In the post, there is a section on the recovery of the essbase substitution variables and their use in ODI.

    See you soon

    John
    http://John-Goodwin.blogspot.com/

  • Installer won't work, indicating that a file may be missing. How to get the installer to run?

    I am running Windows & and downloaded CS6 Master Collection and when I try to run the config file, I get an error indicating that a file is maybe missing and to download and run a couple of potential fixes.  I did, but I have the same error of ge.  I tried only download Photoshop 6 and run this configuration file, but get the same result.  I run other non Adobe without any problem of product configuration files.  What can I do to get the installer to run?

    Move the files to your destop configuration and click "Run as Administrator".

    If this fails, you probably have a corrupt download and should re-download the Installer file.

    For more specific help, attach a screenshot of the error message.

  • PowerCLI Invoke-VMScript re - ip guest - how to get the variable hostname comments

    I run the following script as a task Post-Power-we a re - ip our VMs after that MRS. them rocking.  I was able to run this script successfully without the variable hostname of comments (in the test, he runs a script by test VM with the hostname assigned...), but I'm stumped on how to get comments variablized according to the machine's host name works on, it will take the host name and use it in the GuestUser variable and the command - VM.  I tried the bold part, but it does not work.

    $srv = Connect-VIServer 10.0.0.10 - administrator of the username-password password

    $Hostname = (get-wmiobject win32_computersystem). Name

    $script = "%windir%\system32\cmd.exe/c c:\dr\drIPsettings.bat".

    $HostUser = "root".

    $HostPassword = "password"

    $GuestUser = ' $Hostname\Administrator '.

    $GuestPassword = "password"

    $ScriptType = "bat".

    SE connect-VIServer 10.0.0.10 - Session $srv. SessionID

    Invoke-VMScript - ScriptText $script - VM $Hostname - HostUser $HostUser - HostPassword $HostPassword - GuestUser $GuestUser - GuestPassword $GuestPassword - ScriptType $ScriptType

    Thank you!

    How you code the - VM on the Invoke-VMScript cmdlet parameter, it seems that Displayname of the guest is the same as the host name.

    Can't you just use a loop on guests and then use the displayname property

    $script = "%windir%\system32\cmd.exe /c c:\dr\drIPsettings.bat"
    $HostUser = "root"
    $HostPassword = "password"
    $GuestPassword = "password"
    $ScriptType = "bat"
    
    Get-VM | %{
       $GuestUser = $_.Name + "\Administrator"
       Invoke-VMScript -ScriptText $script -VM $_ -HostUser $HostUser -HostPassword $HostPassword -GuestUser $GuestUser -GuestPassword $GuestPassword -ScriptType $ScriptType
    }
    

    You can encode the Get - VM with more specific selection criteria or use a Where-Object after the Get - VM.

    ____________

    Blog: LucD notes

    Twitter: lucd22

  • How to get the field at any time a vertical field Manager?

    Hi guys. In the application, that I'm working on, I came across a bit of a challenge.

    Basically I have a vertical field Manager ful of custom components.

    Basically this custom components, draws the user name, some other info and pictures of the user related to their account.

    It all works very well, but what I'm trying to do is to get the exact field on the vertical field Manager at any time. You see, while it displays the image of the user, I download from a Web server (and it will display a picture by default while it is downloading). So what I'm trying to do is go to the correct custom component of the vertical field each time Manager, so I can quickly change the image is correct, once I get the correct uploaded image. The manager of vertical field is called via the standard method.

      VerticalFieldManager vfm = new VerticalFieldManager(VERTICAL_SCROLL|VERTICAL_SCROLLBAR) {
    
    protected void sublayout(int w, int h) {
        super.sublayout(480, Math.min(240, 360)); 
    
    }
    
    };
    
    for(int i=0; i< contacts.length; i++)
    {
    //Contacts is an array of my custom component. I am just calling it
    contacts because it basically is a list of contacts.
    vfm.add(contacts[i]);
    }
    
    add(vfm);
    

    Everything works well for me except a way to get the correct field on the vertical field manager. So that I can

    Run it in a contact, and then reset the image.

    Can anyone help with this?

    Thank you

    I suggest that you give to your download manager - a reference to the contact that you update, if networking is done, you can refresh it.

    except if you develop for a device of some I would be careful with the absolute values like 480 btw

  • How to get the SQL query running of af: search?

    I use JDeveloper 11.1.2.3.0. I have a page where I've set up an af:query and an array of result. The problem is that I can't get the exact query that is used during the execution of this component in a managed bean method. Is it possible to get the query string that is run within the af: query?

    Thank you

    Hello

    Method of the ViewObject getQuery() returns what you need;

    You can replace the executeQueryForCollection(), and prior to calling super, you can print the result of getQuery() method:

    public void executeQueryForCollection (rowset Object,

    Object [] params,

    {int noUserParams)

    System.out.println ("SQL =" + getQuery());

    call the super method here...

    }

  • How to get the statistics script runs in CS6

    The script of statistics does not show to the CS6. It is on the hard drive; However, when I double click on it, I get error 54: statistics of the feature is not available on this version of PhotoShop.  Is it possible that I can get this feature or operate?

    I have Photoshop CS6 Standard and Photoshop CS6 extended.

    The Script of statistics available in Photoshop CS6 Extended.

    Extended, it's under the menu file > Scripts > statistics... which shows the statistics of images dialog box.

    There is no this menu item in the standard, which could explain the error if you try to click on the script itself.

    Gene

  • How to see the variable data in time debugging the procedure in Toad oracle 9.1

    Hi all

    I'm not able to see the data variable at the procedure of debugging in Toad oracle 9.1.
    Any help would be appreciated.



    Kind regards
    Prakash P

    Published by: prakash on May 30, 2011 01:37

    Published by: prakash on May 30, 2011 01:37

    Published by: prakash on May 30, 2011 01:37

    You might be aware toad is not a product of Oracle, so you need this post on the forums of quest, http://www.questsoftware.com

    ----------
    Sybrand Bakker
    Senior Oracle DBA

  • How to solve the error message "run-time error '3170', cannot find installable ISAM"

    Hello!
    Recently I was faced with a great difficulty to install a computer simulation problem.
    "International Futures" (you can here access the IFs - http://www.ifs.du.edu/ifs/index.aspx)

    After completing all installation of a software process ' IFs, I got an error message "runtime error '3170', cannot find installable ISAM" when the execution of the simulation program installed.

    How could I solve this problem? Please give me an easy solution!

    Hello

    What operating system is installed on your computer?

    This problem occurs if the application fails to access the database, this is why I suggest you to report your query in the community International Futures. Please visit the link below to find a community that will support what ask you:

    http://www.ifsforums.du.edu/

  • How to get the secondary variable

    Hello

    Can I know how to get the variable of the Secondary VI?

    Please see my VI, when I run the test in high school, I can't any variable in the indicator "get all the control values.

    Is there a wrong?

    Thank you.

    Try this:

  • Satellite A200-AH7 - how to get the camera program?

    I installed Windows 7 today and now the Chicony Webcam does not work. I've updated the drivers and the software for the Toshiba for Windows 7 download site, but nothing happens when I click on camera assistant. I tried to run the compatibility program, and he tells me that the program is not compatible even tought that the software is for Windows 7.

    Any ideas on how to get the camera to run program?

    Thank you
    Gary

    Sorry my mistake, the camera assistant was hidden.
    Of work.

    Post edited by: gary blainville

    > Sorry my mistake, the camera assistant was hidden.
    > Work.
    This means that your webcam working properly now?

    If so it of great and thanks for your comments! :)

  • Maybe stupid question from new user: that can be done to get the variables displayed in the information tab variables?

    I've been a user of LabVIEW (2011) for about 1.5 years now and just got ahold of TestStand 2014 to try future test as a structure for our needs.

    I am using on and off for about 3 days and there is something that has been driving me nuts.  When I launch a sequence, and that the report comes at the end, there are three tabs on it: report, steps and Variables.  Report and the steps are exactly what I expect to see.   However, the Variables tab is always empty.  Nothing that I found via my technique of checking everything in menus that looks vaguely related and right click things on many items and these menus for other vaguely related things as well.

    I tried looking for references to it, and all I get is the "Main" variable tab you see when you change the sequence, not the one that appears on the report.

    See arrow in the image below:

    I suspect there is something incredibly obvious that I'm missing, but it's driving me crazy here...

    You won't see that filled when a run is complete. The variables are useless at this time here.

    If you want to see this populous tab to suspend execution in the middle.  Or a breakpoint.  Then you can watch the variables at run time.

    Kind regards

  • How to get the value of a variable to bind a client method of the AM?

    Hello

    I have a VO based on a variable binding. This binding variable is associated with an element on the page. When the user fills the element that the binding variable is written, the query is executed. This method works.
    What I want now is the following. With a second button, the user runs an exported AOS action method. In this method, I want to get the value of the binding variable that has been put forward.
    How would I do that?

    You can get the variables bind currently set on the object view as follows:
    catServiceDurationsVO has the reference to the VO
    VariableValueManager vm = null;
    VM = catServiceDurationsVO.ensureVariableManager ();
    System.out.println (VM.getVariableValue ("BindVariable"));

    Thank you
    Nini

Maybe you are looking for