Block execution using the slider

Hi, this is my procedure and it works fine. Can someone tell me please how to convert in the execution of block.
This slider is working on one line at a time, suppose I want to it should work on several lines, lets say, it will be
extraction of 3 line in each iteration and insert the same data into the emp_class table in this procedure


create or replace procedure copy_Data is
ENO NUMBER (20);
Nam varchar (50);
DNO NUMBER (20);
ONC NUMBER (20);
CURSOR c1 is
Select the class decode(deptno,10,1,20,2,30,3), deptno, ename, empno in emp;
Start
Open c1;
If c1% ISOPEN THEN
Loop
FETCH c1 into eno, nam, dno, ONC;
When EXIT c1% NOTFOUND;
DBMS_OUTPUT. Put_line(Eno||) Nam | DNO | (ONC);
insert into emp_class values (eno, nam, dno, NOC);
END LOOP;
END IF;
CLOSE c1;
END;
/


Thank you
Madam.

Check this box:

SQL> ed
Wrote file afiedt.buf

  1  create or replace procedure my_copy_Data_Table is
  2  TYPE my_data IS RECORD (eno NUMBER(20),
  3  nam varchar(50),
  4  dno NUMBER(20),
  5  cno NUMBER(20));
  6  TYPE emp_Dat IS TABLE OF my_data;
  7  edata emp_dat;
  8  CURSOR c1 is
  9  select empno, ename, deptno, decode(deptno,10,1,20,2,30,3) class from emp;
 10  begin
 11  open c1;
 12  FETCH c1 BULK COLLECT INTO edata;
 13  FORALL empdata IN edata.FIRST..edata.LAST
 14  INSERT INTO emp_class VALUES edata(empdata);
 15  CLOSE c1;
 16* END;
SQL> /

Procedure created.

SQL> select * from emp;

     EMPNO ENAME          DEPTNO
---------- ---------- ----------
         1 A                  10
         2 B                  10
         3 C                  20
         4 D                  20

SQL> select * from emp_class;

no rows selected

SQL> begin
  2  my_copy_Data_Table;
  3  commit;
  4  end;
  5  /

PL/SQL procedure successfully completed.

SQL> select * from emp_class;

     EMPNO ENAME          DEPTNO      CLASS
---------- ---------- ---------- ----------
         1 A                  10          1
         2 B                  10          1
         3 C                  20          2
         4 D                  20          2

SQL> 

The problem in your code, is this line:

INSERT INTO emp_class VALUES(edata.eno,edata.nam,edata.dno,edata.cno);

Replace with:

INSERT INTO emp_class VALUES edata(empdata);

Tags: Database

Similar Questions

  • Change the Volume using the Slider component

    I am using the slider (aSlider) to control the volume for mySound, which is a class called PlaySound. Created an addEventListener for aSlider with an execution of a function called changeVolume SlideEvent.CHANGE. All other works, but I can't get the cursor to control the volume for mySound. Need help. Here's the current code. TY in advance.


    import flash.events.Event;
    Import fl.controls.Slider;
    Import fl.events.SliderEvent;
    Import fl.controls.Label;

    var mySound:PlaySound = new PlaySound;

    stage.addEventListener (Event.ENTER_FRAME, clock);

    var OFF: Boolean = true;

    function clock(event:Event):void
    {
    var currentdate:Date = new Date();

    arc_mc. Visible = false;
    secondHand_mc.rotation = currentdate.seconds * 6;
    minuteHand_mc.rotation = currentdate.minutes * currentdate.seconds + 6 / 10;
    hourHand_mc.rotation = currentdate.hours * 30 + currentdate.minutes / 2;

    If (secondHand_mc.rotation >-60 & & secondHand_mc.rotation < 0)
    {
    arc_mc. Visible = true;
    If (OFF)
    {
    OFF = false;
    mySound.play ();
    }

    }
    on the other
    {
    arc_mc. Visible = false;
    SoundMixer.stopAll ();
    OFF = true;

    }


    }


    aSlider.addEventListener (SliderEvent.CHANGE, changeVolume);

    function changeVolume(event:SliderEvent):void
    {
    var volumeLevel:Number = 5;
    volumeLevel = event.target.value / 100;
    valueLabel.text = event.target.value + 'percent';
    }

    you follow all the instructions.  use:

    import flash.events.Event;
    Import fl.controls.Slider;
    Import fl.events.SliderEvent;
    Import fl.controls.Label;
    import flash.media.SoundTransform;

    import flash.media.SoundChannel;

    var mySound:PlaySound = new PlaySound();

    var mySoundChannel:SoundChannel;

    stage.addEventListener (Event.ENTER_FRAME, clock);

    var OFF: Boolean = true;

    function clock(event:Event):void
    {
    var currentdate:Date = new Date();

    arc_mc. Visible = false;
    secondHand_mc.rotation = currentdate.seconds * 6;
    minuteHand_mc.rotation = currentdate.minutes * currentdate.seconds + 6 / 10;
    hourHand_mc.rotation = currentdate.hours * 30 + currentdate.minutes / 2;

    If (secondHand_mc.rotation >-60 & secondHand_mc.rotation)<>
    {
    arc_mc. Visible = true;

    If (OFF)
    {
    OFF = false;
    mySoundChannel = mySound.play ();  delcare mySoundChannel outside all functions
    mySound.play ();
    }
    }
    on the other
    {
    arc_mc. Visible = false;
    SoundMixer.stopAll ();
    OFF = true;
    }
    }

    aSlider.addEventListener (SliderEvent.CHANGE, changeVolume);

    function changeVolume(event:SliderEvent):void
    {
    valueLabel.text = event.target.value + 'percent';
    var st:SoundTransform = mySoundChannel.soundTransform;
    St.volume =(event.target.value-event.target.minimum) / (event.target.maximum - event.target.minimum);
    mySoundChannel.soundTransform = m;
    }

    TX 1 million

  • The images appear tense when played using the slide show in full screen

    The images appear tense when played using the slide show in full screen in Windows Vista Basic. That means that a picture of resolution 1920 x 1200 appears full screen covering although a 1920 x 1080 image seems letterbox in fullscreen. My screen resolution was put to the native resolution of 1920 x 1080. It is clear that this slide show program only keeping the proportions of the image. Earlier this problem wasn't there. I think that the slide show program addresses in such a way that my monitor could have 16:10 display of report resolution l / h. thanks for giving me a solution.

    This happens usually when the image resolution is high.

    Keep your screen resolution of 1024 x 768 and it should work fine.

  • When I try to edit a room photo in photoshop elements 12, I'm not able to use the slider or one of the drop down menus. All I have is a black circle with a line through it.

    When I try to edit a room photo in photoshop elements 12, I'm not able to use the slider or one of the drop down menus. All I have is a black circle with a line through it.

    Most likely, the images are 16-bit/channel.

    Go to Image > Mode and click on 8-bit/channel and see if that solves the problem.

  • Using the slider for and BULK COLLECT INTO

    Hi all
    in this case we prefer to use the cursor AND the cursor with the LOOSE COLLECTION? The following contains two block this same query where used FOR the slider, the other is using COLLECT LOOSE. The task that is running better given in the existing? How do we measure performance between these two?

    I use the example of HR schema:
    declare
    l_start number;
    BEGIN
    l_start:= DBMS_UTILITY.get_time;
    dbms_lock.sleep(1);
    FOR employee IN (SELECT e.last_name, j.job_title FROM employees e,jobs j 
    where e.job_id=j.job_id and  e.job_id LIKE '%CLERK%' AND e.manager_id > 120 ORDER BY e.last_name)
    LOOP
      DBMS_OUTPUT.PUT_LINE ('Name = ' || employee.last_name || ', Job = ' || employee.job_title);
    END LOOP;
    DBMS_OUTPUT.put_line('total time: ' || to_char(DBMS_UTILITY.get_time - l_start) || ' hsecs');
    END;
    /
     
    declare
    l_start number;
    type rec_type is table of varchar2(20);
    name_rec rec_type;
    job_rec rec_type;
    begin
    l_start:= DBMS_UTILITY.get_time;
    dbms_lock.sleep(1);
    SELECT e.last_name, j.job_title bulk collect into name_rec,job_rec FROM employees e,jobs j 
    where e.job_id=j.job_id and  e.job_id LIKE '%CLERK%' AND e.manager_id > 120 ORDER BY e.last_name;
    for j in name_rec.first..name_rec.last loop
      DBMS_OUTPUT.PUT_LINE ('Name = ' || name_rec(j) || ', Job = ' || job_rec(j));
    END LOOP;
    DBMS_OUTPUT.put_line('total time: ' || to_char(DBMS_UTILITY.get_time - l_start) || ' hsecs');
    end;
    /
    In this code, I put a timestamp in each block, but they are useless, since they both launched virtually instantaneous...

    Best regards
    Val

    (1) bulk fired fresh primary use is to reduce the change of context between sql and pl sql engine.
    (2), you should always use LIMIT when it comes with bulk collect, this does not increase the load on the PGA.
    (3) and the ideal number of BOUNDARY lines is 100.

    Also if you really want to compare performance improvements between the two different approaches to sql pl try to use the package of runstats tom Kyte

    http://asktom.Oracle.com/pls/Apex/asktom.download_file?p_file=6551378329289980701

  • delete the data using the slider to tape

    Hello

    I have some log files that I need to deal with. For some of these files, I'll have to remove the beginning and the end of them. For this I intend to draw the newspaper and set of 2 sliders, and then the user move the sliders in a way that he would leave the unwanted data out of the band and then it would be a button to continue to delete the unwanted data of all channels within the group.

    So far I traced the data and set the band using the following script:

    view. ActiveSheet.Cursor.Type = "band".

    view. ActiveSheet.Cursor.Mode = "graphPoints".

    view. ActiveSheet.Cursor.X1 = CMin ("Y_Accel") + 0.25 * (CMax("Y_Accel")-CMin("Y_Accel"))

    view. ActiveSheet.Cursor.X2 = CMin ("Y_Accel") + 0.75 * (CMax("Y_Accel")-CMin("Y_Accel"))

    Now, I would use the positions where the sliders have been moved by the user to remove data but I don't know how to read the position of the cursor. With it, I would use a function like DataBlDel or similar.

    Does anyone have an idea how to do that?

    I'm just starting with DIAdem so if anyone found out that there is an easier way to do it please let me know.

    Thank you

    Leo

    Hi Leo,

    If you're just starting with DIAdem and scripts then the following article is a great resource. It examines interactions between users and the cursor data.

    DIAdem - using scripts to run the dialog box file, intervention by the user, using the data of frame slider and good even more!

    https://decibel.NI.com/content/docs/doc-5771

    Good reading and let me know if you have any questions.

    Best regards

    Chris

  • Using the slider to display time

    Hello!

    I am trying to use a vertical scroll bar to represent my dataset of 72 hours. I also added two additional cursors, to represent an interval of time inside the dataset object. My problem is that when I try to connect the cluster with timestamps for the slider, he says ' Cluster-> output_timestamp 1 d of timestamp, conflicts with cluster slide, a double [real 64-bit]»

    I understand that there is a conflict of input type expected in the slider to actual entries, my question is to know how to solve this problem? Do I have to convert all the data, or there at - it options for the cursor that I don't have right?

    I have attached a picture to show what I want to do my slider.

    Greetings

    Kristoffer

    This support allows you to get what you need?

  • Preview screen turns black when you use the slider to soften ultra key

    Hello

    I'm working on a video, including a greenscreen. That is why I use the ultra key to make the transparent green screnscreen. Whenever I touch the slider "soften" Ultra key, windos preview blackens. I can't get it back to normal until I restart the first. Version 2015.4.

    This issue is being investigated. So far it has been reproduced with acceleration GPU on Windows. What is the case on your system? Also, could you provide your operating system, graphics card and if you use CUDA or OpenCL?

    A possible solution is to go into project settings > General and set the Mercury Playback Engine software only, when you use the parameter to soften.

    Thank you.

  • How to use the slider to avoid movements of keys?

    Hello

    first of all, I must say, I'm not a native English speaker, so please forgive me in advance. In any case, I want to solve this particular problem: I created a project in After effects, where you can add your own text, logo or anything else in the composition... What is the after effects project does, that it transforms your text or logo in metal 3D result. Also cooked up camera which moves from one position to the other. Take a look:

    The text of the inscription is "add content" (I have 4 cameras together, but I shows an example only on the first, so that you will not see the full text. The rest of the cameras are also in other publications)

    firstone.jpg

    Here you can see the exact movement of the camera. However, if someone inserts a logo or a text, which for example has 7 letters (in the next picture, it is just "content") it will look like this:

    secondone.jpg

    Here you can see how much space we have. Also, it is not appropriate to change the original size of the text in the composition to achieve the smallest gap, as we can see here. The height will be huge.

    If I could change it by myself, I could do this:

    -I'd clicked on the "2 views" button and choose display in the "front".

    -I want to select all the keyframes and after that i would go into the left window 'front' and the mouse I would move all the camera to the position I want to:

    thirdone.jpg

    The great thing about this, is that as I've selected all the keyframes and then define the line red on one of them, the cameras works even at the beginning! So that's how it will look after the fix.

    fourthone.jpg

    What the problem is, that, after the small edit I want to send this project to a small number of friends. Then, they can easily set their text or logo in. The text must at different heights, width... it will be shorter or longer. I was just wondering if you could help with some phrases, joints and so on, for in the end result, one of my friends might move with the whole camera (not only with a keyframe) using the CONTROL SLIDER. At least for x and is the axis, if the z axis is also possible, it would be awesome. Also, it does not matter the sliders how there will be .

    So basically with the help of sliders, they should achieve:

    fifthone.jpg

    So I need some useful measures. Please help me. It is very important to me. I will be so grateful! Really! (Thanks for the potential aid )

    You're average over the thought of your problem and potentially headed on a path that will cause more problems that it solves.

    If you have a camera that is already busy road and you want to change the position of the camera as a path together the best way to do this would be to create a null value and parent then the camera for the null value. Pass null and all camera movements, you have put in place will follow. None of the expressions are required. It is the best way to change all aspects of a trajectory, turning the entire path, the path to the scale or move the path on any axis.

    If you really want to use 3 sliders position to move existing keyframes to a new value value + the values of the expressions will allow you to do. Just add a sliders control of three expression for the camera layer (or any layer as the null that you use as a parent) select the name of the cursor in the ECW and press on enter and rename it. Something like this will be the result.

    Note that I also rotation and controls are resized to this configuration. Now that you have 3 sliders, you can separate the position property to null in individual values allow expressions in each property, and the value type +, then use the pickwhip to drag your cursor named which (in my example) value of X and repeat for each operation. The value + will add the value of the slider to the current value of the position of the keyframes. The expression would look like this for X:

    value + effect("x position")("Slider")
    

    If you want to use the sliders that I would use a null value, add expression controls to null to keep position, scale and rotation, the unified camera position property and then use your sliders control of expression of the null value to change your existing path. I suggest not to do it directly on the position of the camera with separate X, Y and Z values because it will change the shape of your camera path and would be more difficult to control. You'll probably also want to create a POInull camera and use this preset to bind the point the camera of interest for the null value.

    Here's a preset , you can apply to a null value which will give complete control to the trajectory of any layer animation make you the child of this null. Search Animation preset in the field of search After Effects help, if you don't know how to use, create them, then save them.

    As a final gimme, here's a project CS6 using this animation preset to control the position of null is used to change a path animation camera.

  • Healing Brush spot Editor by using the slider to adjust the size

    "Is anyway to do the 'size slider" more visible when using the Spot Healing Brush Editor "?

    On my system, the scroll bar is black and against the dark grey of the Editor screen"that makes it very difficult for me to see.

    Try to use the keys on the keyboard hook.

    [to decrease the size

    ] to enlarge

  • BlackBerry Smartphone camera settings: cannot use the slider to increase/decrease the proximity of the image

    Dear all

    I'm a newbie when it comes to using a BB. I was pretty happy with my BB 8520 Curve until recently. Yesterday while trying to click on a photo, I tried using the wheel to increase the proximity of the image & it didn't work & since then it has not worked. I thought that maybe there was a problem with my scroll button but NOOOOO...

    Works of scrolling around elsewhere. I don't know too much what setting needs to be changed. We have a festive season going on here in our city & I'm dying to take some pictures of almost, but I'm unable to increase proximity using the scroll key

    I hope I could explain my problem... Pls help...

    Kind regards

    Neena

    Try this, with the POWER YOU delete waiting for battery a minute or two and then re - inserted and left entirely re - start. This should solve your problem.

  • graphic execution using the unix command

    I'm new to endeca3.1

    is there an available way to run the chart using the unix command?

    How can I plan the graph in the cron tab?

    Take a look at the Guide to the Integrator ETL server (Server CloverETL), Chapter 6, Scheduling and also chapter 14 on the Simple HTTP API.  This should allow you to plan or call graphical ETL published to the server.

    http://docs.Oracle.com/CD/E40518_01/Integrator.311/IntegratorServerGuide.PDF

  • Jotformforms (import with HTML box) do not appear in the breakpoints after the forst breakpoint. . Using the slider I see the form disappear, I said not to give the command hide this breakpoint.

    When I try to import a form (jotform) with the imported HTML of the form box can only be seen in the first breakpoint (wider). When I move the cursor to the left, I see that he form in other breakpoints. When I systematic behavior of the site with the browser the form disappears. I have not used the hide command in this breakpoint.

    Maybe it's because the Jotform itself is not fluid/reagents. Looking into other forms of third parties to use with Muse which are fluid. Not sure those who will work best still but looking Typeform.

  • Why I can't scale proportionally by using the slide bar?

    I know there are other ways to change the size of an image, I would use Edit > Transform > scale to scale proportionately. It doesn't seem to work for me, as you can see below in this video that I created with audio included. What I am doing wrong? I use Photoshop CC 2015.1 on a 8.1 Windows machine.

    Appreciate any help you can offer.

    Your title is confusing: "moving bar. Usually people refer only to a bar in the space bar and the shift key. Are you pressing the SPACEBAR or shift key? The space bar will give you the hand, while the SHIFT key will scale proportionally. If you use the SHIFT key, you may have to reset your preferences.

  • MovieClip content using the slider. How?

    Hello

    I have a MovieClip on the stage with a name within the text with images & content. I use the layer mask that have the name of the instance of masker show some of the MovieClip. I want to use it to scroll the MovieClip content vertically. How can I do that?

    It's my code, but it is not work that good:

    import flash.events.MouseEvent;

    var yOffset:Number;

    content.addEventListener (MouseEvent.MOUSE_DOWN, contentDown);

    stage.addEventListener (MouseEvent.MOUSE_UP, contentUp);

    function contentDown(e:MouseEvent):void

    {

    content.addEventListener (MouseEvent.MOUSE_MOVE, contentMove);

    Decalage_y = mouseY;

    }

    function contentUp(e:MouseEvent):void

    {

    stage.removeEventListener (MouseEvent.MOUSE_MOVE, contentMove);

    }

    function contentMove(e:MouseEvent):void

    {

    Content.y = mouseY - decalage_y;

    e.updateAfterEvent ();

    }

    Kind regards

    I have given you a rough example.

    For what you are trying to do, you really want to:

    var scrollHeight:Number = content.height - masker.height;

    var startY: Number = content.y;

    function contentDown(e:MouseEvent):void

    {

    content.startDrag (false, new Rectangle (content.x, startY - scrollHeight, 0, scrollHeight));

    }

    function contentUp(e:MouseEvent):void

    {

    content.stopDrag ();

    }

Maybe you are looking for