Simple Variables example

Hello

I have user rights to an Oracle 10 g server, but am not a DBA, so I did not all editing permissions that I know. I just use the database for queries.

I want to understand how to use PL/SQL to enter variables but am struggling to find some simple examples of this?

I use Oradev Studio to perform my SQL and we tried the following:

declare
type of v_dealname global_sf.deal.deal_legal_name %;
Start
Select
deal_legal_name in v_dealname
Of
global_sf. Deal
where
deal_id = '87148804';
dbms_output.put_line (' name: ' | v_dealname);
end;

which I hacked together here;
http://www.DBA-Oracle.com/t_pl_sql_plsql_select_into_clause.htm

Strangely the OraDev output section gives me this encouraging message "SQL6.sql: Execute succeeded [0.095 s]" but it gives me a printed copy of the variable I was hoping. Is there a 'window' or equivalent that I did not find? The query has actually worked?

I also tried to put a variable in the where clause in another arbitrary query:

declare
v_dealid INTEGER (8);
Start
v_dealid: = 87148804;
Select
creation_dt
deal_legal_name
actual_maturity_dt
Of
global_sf. Deal
where
deal_id
=
v_dealid;
end;

Here I get the error 'an INTO clause in this SELECT statement.

Could someone advise me please on some of those issues of basic variables? Ideally a breast of simple examples, I could use it don't require admin rights would be fantastic. It would be much appreciated.

Thank you

Jon

Published by: berlinhammer on August 24, 2010 04:48

I use Oradev Studio to perform my SQL

Probably the post on the forum to DBMS_OUTPUT problem contributes to operate in OraDeveloper the dbms_output.

Tags: Database

Similar Questions

  • Simple Variable question...

    Hello guys, I came across a strange problem and do not know if I have missed something. I created a simple code below for my AC, but it gave me an error that says

    Access of undefined property 'test '. I know it's maybe just, but I can not find the answer at this time. I appreciate if anyone here can help me...

    Thank you!

    < fx:Script >

    <! [CDATA]

    private var test: number;   declare the variable to test

    test = 25;  Give it the value

    ]]>

    < / fx:Script >

    You can initialize and judge at the same time (private var test: N = 25), but you can't just have a floating expression like that in the Script block. You can also assign a value inside a function (e.g. private var test: Number; function init (): void {test = 25 ;}), if you won't call from a location (for example, as a Manager for your component of creationComplete event).

  • Network published simple Variable help

    I am writing a program to be a 'LabView wrapper' for iperf

    I need to run iperf server and client iperf on two different machines.

    Machine: iperf Server launch and write ture to a shared variable

    B: machine customer shared reading variable iperf and launch if computer A is running iperf Server

    I've never used a shared variable before, I looked at the examples, but as usual, they work but are default and one explanation as to why or how.

    I managed to get as far as a variable to shine as a network type Boolean putting published a shared on my block diagram variable I can choose the my project server variable, very well, but the shared variable is read-only?

    How can I write to a shared variable?

    Right click and change the access mode to write

  • Simple variable problem

    It is a really simple problem and I'll probably be a little dim but as I do not code things very often simple things tends to leave my brain.

    Summed up quite simply I have an if statement which, instead of using the current value of a variable appears to be implemented.

    More detailed description:

    I have 2 symbols, 'Olive', which is a three marked positions timeline animation, ' open, 'enabled' and 'closed' who defined the value of the variable 'positionO' as a result. I tested this little with alerts and is very well.

    When I mouse over the second symbol I want to retrieve the variable and play different parts of the animation depending on its value, well?

    I have this piece of code on the mouseover element:

    var myVariable = sym.getComposition().getStage().getSymbol("Olive").getVariable("positionO");
    if (positionO = 'open'){
    alert (positionO);
    }
    

    Now to me, this should trigger the alert if the variable is set to 'open' and do nothing if the value is something else, but what he is doing is setting the variable 'open' and shooting alert anyway.

    Thanks in advance,

    Alex.

    Try this (equal) 2 for comparison:

    if (positionO is 'open') {alert (positionO) ;}

  • the values of simple variables share .swf files

    I need to send three simple film of mother variable values to subsequent files .swf test-tube. I use loadMovieNum() to load external .swf two files replace the film of the mother and also to sit top and can't get the values of the variables to pass from one to the other. I have to load them from an external file, or do something fancy. I just need the film to retrieve the values of the film of the mother who gave birth there.

    Thanks in advance.

    I had a similar problem, since I started to learn As.

    use _global.variableName = "no matter."

    Let's say that you need to pass the variable "tom" of the film at the cinema

    Try this...

    _Global.myName = 'tom '.

    in another film use

    theText_txt.text = MyName;

    It would create dynamic text with instance name equal to your global variable "theText_txt" in this case, "tom."

    I would start here.
    try to look for the passage of the variables or global variables and see what happens in the posts previous forums.

    I hope this helps.

    Sky

  • simple variable problem and question preloader

    I am new to AS3 and have a problem with the following code:

    Stop();
    var xmlLoader:URLLoader = new URLLoader();
    var xmlData:XML = new XML();
    var homeText:URLLoader = new URLLoader();
    var slideLoader:Loader = new Loader();
    var sprContainer1:Sprite;
    var projectPath:String;

    LOADING XML

    xmlLoader.addEventListener (Event.COMPLETE, LoadXML);

    xmlLoader.load (new URLRequest("XML/main.xml"));

    function LoadXML(e:Event):void {}
    xmlData = new XML (e.target.data);
    ParseCategories (xmlData);
    }

    PARSE XML
    function ParseCategories(projectInput:XML):void {}
    This. Title.Text = projectInput.category.project[0].@name;
    projectPath = "projects / ' + projectInput.category[0].@path + ' / ';.
    trace (projectPath);

    }

    LOAD THE TEXT FILE

    homeText.addEventListener (Event.COMPLETE, onLoaded);
    homeText.load (new URLRequest (projectPath + "/ text.txt"));

    function onLoaded(e:Event):void {}
    this.homeTxt.text = e.target.data;
    }

    IMAGES LOAD - LOAD FROM XML MULTIPLE IMAGES - COMPLETE

    sprContainer1 = new Sprite();
    homeImg.addChild (slideLoader);
    slideLoader.load (new URLRequest (projectPath + "/ image2.jpg")); < < CURENTLY LOADING AN IMAGE

    The above code shows how to load an XML file that contains the path to the text and image files, I am able to trace the path correctly in the service of ANALYSIS above, but I'm not able to recover the variable (or he also traces) in the TEXT section of the LOAD, please help.

    As I continue to code, I would also like to dynamically load images multiples (in the section LOAD IMAGES) using the projectPath and iterate through each image appearing in an XML file. I'm still not at this time, but my question is how to create a preloader/progressbar that overall progress is displayed for all URL requests (the text file and several images contained in the XML file). Thank you immensely.

    :

    Stop();
    var xmlLoader:URLLoader = new URLLoader();
    var xmlData:XML = new XML();
    var homeText:URLLoader = new URLLoader();
    var slideLoader:Loader = new Loader();
    var sprContainer1:Sprite;
    var projectPath:String;

    LOADING XML

    xmlLoader.addEventListener (Event.COMPLETE, LoadXML);
     
    xmlLoader.load (new URLRequest("XML/main.xml"));
     
    function LoadXML(e:Event):void {}
    xmlData = new XML (e.target.data);
    ParseCategories (xmlData);
    }

    PARSE XML
    function ParseCategories(projectInput:XML):void {}
    This. Title.Text = projectInput.category.project[0].@name;
    projectPath = "projects / ' + projectInput.category[0].@path + ' / ';.
    trace (ProjectPath);

    useProjectPathF();

    }

    LOAD THE TEXT FILE

    function useProjectPathF() {}

    homeText.addEventListener (Event.COMPLETE, onLoaded);
    homeText.load (new URLRequest (projectPath + "/ text.txt"));

    }

    function onLoaded(e:Event):void {}
    this.homeTxt.text = e.target.data;
    }

    IMAGES LOAD - LOAD FROM XML MULTIPLE IMAGES - COMPLETE

    sprContainer1 = new Sprite();
    homeImg.addChild (slideLoader);
    slideLoader.load (new URLRequest (projectPath + "/ image2.jpg"));

  • Disorder of the 'simple workflow example.

    Hello

    IM completely new to orchestrator, so forgive me if this is a stupid question.

    I'm along the base tutorials in the documentation, and I hit a stumbling block when trying to put in place a node of a 'decision '.

    IN my schema, I select the decision node "VM power?" and add

    VM VC:VirtualMachine "status is equal to."

    I click "not defined" expect to be able to choose either 'receptor', 'poweredOff', or 'suspended '.

    a box appears that says: MV; VirtualMachinePowerState but nothing is found

    Enter receiving, or similar tool in the filter does nothing, so I can't fill in the latter area.

    I'm doing something wrong?

    I am able to browse through the server vCenter inventory tab, so it seems that orchestrator is in talks with vCenter correctly...

    Thank you

    Jason

    Welcome to Jason,

    You do not have something wrong, that a bug has been discovered recently in the decision box whn using the power of virtual machine state.

    Rather use a decision-making process custom box, add your vm as input and write the following code:

    If (vm.runtime.powerState == VimVirtualMachinePowerState.poweredOn) {}
    Returns true;
    } else {}
    Returns false;
    }

    Christophe.

  • read the type of variable and the value of LabView

    With the help of the TS. Class sequence that I try to get the type of variable and the values of local variables, parameter, fileglobal and stationglobal. Unfortunately I'm not able to find the right function. Hope someone can help me.

    Kind regards

    Lars

    Hello

    Maybe this simple TestStand example will help you.

    The API calls for LabView are the same...

    Hope that helps

    Jürgen

  • TestStand IO using c# to access sequence variables of

    I have a requirement to display during execution on the IO sequence variables.

    At the c# simple IO example and after reading some help files and docs, I tried two approaches. I failed to go to sequence variables.

    (1) I tried to get a SequenceContext of the ExecutionMgr, but failed with the COM exceptions

    (2) then tried to recover the RuntimeVariables, but even once, it failed with the COM exceptions

    Is not a c# or .net expert I think I have to make a simple mistake.

    Someone out there who has done this in c# and is ready to share?

    I am interested in:

    (1) what is the right way to access the sequence inhabitants.

    (2) what event reminders to use to update GUI with the progress of the execution sequence.

    If no luck I'll publish my code and problems.

    With the help of Teststand 4.1 with the free version of Visual Studio 2008.

    The way focused on events to do this is has your message in sequence by using the method of Thread.PostUIMessageEx of UIMsgs. The messages contain a payload of data of your sequence variables. The IO will have an event handler that receives these messages, and then you add the code in the IO to the data wherever it goes on the front panel of the IO. You must create your own messages defined by the user because TestStand lists a UIMessageCodes block. You can view messages in a code module, a stage of the trial, or use an expression TestStand API.

    TestStand I (or II) course is a good example on how to do it. This seems far-fetched at first, but it's a scalable way to do. It provides a rough synchronization, you get the UIMessages from their publication.

    A cool thing, is: when your IO receives a UIMessage, it can be thread.sequence the message context. So you may send a dummy message, have your event handler to get the context of the message sequence, and you will have access to the local population of sequence and all the rest.

    If you want to have the read IO inhabitants of sequence by another way, I think you'd get an array of all executions that the engine has currently a Manager OI (maybe the engine), then understand that it is yours, then understand this thread in this performance is yours and then the thread and sequence etc.. It is not possible to obtain seq right context of ExecutionMgr. I personally wouldn't do it this way.

    CC

  • Transfer of a captivate variables module to another

    A colleague I work with wants to put in place two simple variables which keeps track of a score and one that holds a user name.

    The course will consist of a number of modules hosted on an LMS System.

    Is there a way to transfer variables between modules:

    Thus, for example, if in module 1, I enter my name as "Joe Bloggs" and I finished module 1 with a score of 200 when I load the module 2, I'll start with a score of 200 and it will remember the name I typed in module 1?

    He seems to think that it is possible using Javascript, but doesn't know exactly how he would implement it yet.

    So I guess my questions are

    (a) is it possible to do?

    (b) if it is, which is the best way to do it (can't use javascript)

    Thanks in advance

    The simpler way without JS, will use the new widget from CpExtra of InfoSemantics, which is for HTML output only.

    CpExtra - Widget of HTML5 (01 single user license). Infosemantics Pty Ltd

    If you don't want HTML but output SWF, take a look at the Save and Load Data widget by Michael Lund:

    Save and Load Data Widgets for Adobe Captivate patch | CP Guru - Adobe Captivate Widgets

    Someone has confirmed that this widget is still functional for future versions of Captivate.

  • Need advice to make a simple Flash video file. Trying to accomplish two things.

    I have some video files (.avi) that I'm trying to convert a Flash video format. I'm trying to export it to a Flash drive to be in a Powerpoint file. With that, I'm trying to accomplish two objectives:

    1. to have the small clip (15 s, 30 fps) constantly loop, like an animated .gif.

    2. allow the user to click on the video and made player slide left/right for ff / rew.

    The video itself is an animation of the turntable. One of our products makes a full 360 degrees turn. By allowing the user to capture and drag, it will simulate turning the model.

    So far, I have already achieved objective 1. I made a new Actionscript 3, any video file (embed flv in swf and play in timeline), and then made the video loop on the timeline. This seems to export properly, and video loop if necessary. The only thing I can't understand is how to "interactive" video and let the user drag left/right.

    For context, I have never used Flash before. Any help would be greatly appreciated.

    Essentially, it comes down to move the playback cursor in Flash based on the movement of the mouse. It certainly won't be smooth, however, you would need a clock to be responsible for moving your head to read and reverse space compression is very intensive CPU (reverse on the timeline). I would recommend having an upstream release and in advance of the video then you could return them, but if you're new to flash you are already in way over your head.

    Add a new layer and try to add this example script (or Download Source example here, registered in CS5):

    import flash.utils.Timer;

    import flash.events.TimerEvent;

    import flash.events.MouseEvent;

    Make sure that we don't raise this image twice

    If (! stage.hasEventListener (MouseEvent.MOUSE_DOWN))

    {

    stop the playhead

    Stop();

    set state (forward? back?)

    var movingForward:Boolean = true;

    var curFrame:int = 1;

    var mouseStartX:int; used later to determine the drag

    detect the click of the mouse and drag to the left or right

    stage.addEventListener (MouseEvent.MOUSE_DOWN, onMouseF);

    stage.addEventListener (MouseEvent.MOUSE_UP, onMouseF);

    create new timer to control the playback head, start it

    var phTimer:Timer = new Timer (33.0).

    phTimer.addEventListener (TimerEvent.TIMER, movePlayheadF);

    phTimer.start ();

    function to control the playback head

    function movePlayheadF(e:TimerEvent):void

    {

    curFrame += movingForward? 1:-1;

    validate the frame (60 total frames)

    If (curFrame > this.totalFrames) curFrame = 2;

    ElseIf (curFrame< 1)="" curframe="">

    Goto the next image

    this.gotoAndStop (curFrame);

    }

    function that controls the direction variable

    function onMouseF(e:MouseEvent):void

    {

    If (e.type is MouseEvent.MOUSE_DOWN)

    {

    the user began place start touching, record

    mouseStartX = int (stage.mouseX);

    }

    Else if (e.type == MouseEvent.MOUSE_UP)

    {

    user let the mouse go, determine the change in direction (by scanning stype)

    If (stage.mouseX > mouseStartX)

    {

    slipped right, move forward

    movingForward = true;

    trace ("move on now '");

    }

    ElseIf (stage.mouseX<>

    {

    crept to the left, move the rear

    movingForward = false;

    trace ("back up now '");

    }

    }

    }

    }

    It's pretty simple. In the link source of the example above, an object in the timeline (nice ugly red circle) is moving right plus 60 frames and then left on 60 images (120 total). Consider that your film.

    A clock at a speed of 33ms (30 fps). It's where he won't necessarily be too smooth with video. If you wear at 60 fps, then decrease the timer of the half (16.5ms), season to taste. Whenever the timer fires the playhead is moved, either forward or backward.

    For whether she should go forward or backward a simple variable (movingForward) keeps track of the last "swipe". The shot is simply captured when a user touches the screen (mouse/finger), moves in a direction and then leaves upward. If they moved to the left the direction will be reversed. If they moved to the right, it will move forward. This does not include nor this logic, but illustrates how you can watch the mouse for movement and 'do something' on this basis.

    A very simple validatior in the event timer function checks if the next image (in both directions) is valid and if it is not the case, it fixes it so that it remains within your length of video editing.

    Note there is a MOUSE_MOVE event you can try to hold on to who can literally let the user drag the video forward and back the amount, they drag their finger/cursor. Also if it is a kind of circular surface as a disc rotates, the direction of the user moving the mouse based on where they registration would change the direction in which they expect to move. Etc etc...

    Who should get your feet wet in how you should consider for your project.

  • passing variables between CFSCRIPT and Javacript

    The example below is a very rough diagram of what I am triying to do but is there a way to do it with cfajaxproxy or something? Can we post or a link to an example please?

    < cfscript >

    name = "hulfy".

    < /script >

    < script >

    var myName = #name #.

    < /script >

    The easiest way is to use tags around your script tags cfoutput.  It will work for simple variables.  For tables, queries, etc., toScript() or cfwddx would be useful.  As far as I know, they do the same thing.

  • fix variable (first emulator)

    I have an equation that I entered the first emulator and want to solve for a variable. I am able to work when I put in values for each variable and leave a vacuum. It solves for the fine missing variable in this case. I want to do is solve the equation for a variable when none of the variables have a value. I expect it would be re - arrange the equation for the variable I scream as it does on my ti89 titanium. Instead I just get a set of brackets in the {} the answer.

    The equation is:

    diffImpedance = 2 * ((80/√relativeEr) * (ln ((1.9*(2*heightSmaller+cuThickness))/(0.8*diffTrace+cuThickness)))*(1-heightSmaller/(4*heightLarger)))*(1-0.374*e^((-2.9*(diffSpace/heightOverall))))

    I put in all the variables as variables user and then store the equation in E0.

    Can I do: solve (E0, diffSpace)

    and the answer I get are the media. I tried it with more basic formulas, and it is the same thing. I'm doing something wrong?

    Thank you

    It must be remembered that A - Z are predefined, numeric variables. This means that if you use them, you pull the value. The first, the symbolic and digital are not mixed together. It's just like if you went through and stored all your variabels from A to Z on the 89 0. It will pull the values to use and you don't have simple variables.

    Press the CASE, type your expression — notice that variable screen where are tiny - and then press ENTER. You get the symbolic solution.

    Solve ((3*x^2) = (5 * y * 4 ^(z-2)), z)

    If you try to make symbolic, exact calculations, then you must use the screen CASE. If you are only numbers and want nothing symbolic, HOME is the place to be.

  • configuration of the plugin simple text report

    I am updating a project of Teststand 4.2 for 2012. The original was a text via a report updated the sequential model and ICB code. I have trying to find current best practices to achieve a similar report.

    I installed the plugin to report simple text example but can find no documentation on how to configure it.

    The example works fine, but the columns have no limits or the measured value and have other items that I didn't need.

    Looking through the code I can see these are defined in the settings of the plugin, but I do not see where in my project to put.

    I'll also have to configure the report header and the name of the file.

    David

    What exactly do you mean by "key values"? Are you referring to the Key property in the NI_SimpleTextReport_CVI.seq?

    In order to get the type of comparison of a numerical limit test, for example, you can use an Expression like this post:

    Locals.ComparisonType = Step.Comp

    This would amount to "FROZEN".

    Regarding the addition of the results of the report, the key values are a string of research compared to a result object. In this case, you can add what you want to log on to the other results of this approach. Then, you can add a new column to the report in the NI_SimpleTextReport_CVI.seq file and the value of the key:

    AdditionalResults ["NameOfAdditonalResult"]

  • What are three examples of displays used in keyboarding and more columnar and flowcharts?

    In typing, working column is an example of a simple display, while a diagram is an example of an advanced view. I need three other examples of each type of display.

    Simple display examples are:

    -Menus

    -Invitations

    -Work columnar

    -View resolved and unresolved

    -Maps

    -1 & 2 page programs

    -Flyers

    Advanced display examples are:

    -Newsletters

    -Graphics

    -Organization charts

    -Organization charts

    -4-6-8 page brochures

Maybe you are looking for

  • Browser is stuck in mode full screen, restart does not help.

    I entered the mode full screen on a website and now cannot get out. Restarting my computer does not help. Problem is that when you are using Firefox, no other browsers. Firefox continues to open full screen mode whenever I open it, and I have to rebo

  • Toshiba 32EL933 - DVB - T channel list is not sorted in hotel mode

    Hello I have over 100 of these TVs, and I have problem with hotel mode. I use USB drive and one TV (find paths and creating a new list of channels sorted, with my order), and then I use usb for programming other TV sets. And I have no problems with t

  • How do I vew video streaming?

    I'm currently downloading a video with utorrent.  I clicked on 'stream '.  I can hear the video on Windows Media Player, but nothing appears...

  • Please provide the drivers

    My network adapter does not work correctly. When I tried to install Bluetooth + wireless driver for my laptop dell 3542 which runs on windows 7, it says activate Bluetooth using the wireless switch. I turned on by doing Fn + prtscr key, even if I do,

  • Photo Print Gadget

    I had no problem installing the gadget impression and it appears on my desktop as described however, it does not find my printers, the window is completely empty.  Anyone else having this problem and if yes, do you you solve?  It seems to be pretty c