Speed of the cursor (Select Into Vs. For loop)

Hello people:

I have a question about the PL\SQL block execution speed in the 2 page process below: 1 which is faster by the way it is written?

Assumption #1: Each select statement performs exactly the same speed.

#2 hypothesis: I expect 1 form must be retrieved in each block PL\SQL (never can be more than 1 record).

Assumption #3: Each APEX_MAIL. SEND command has the same settings.

PROCESS OF PAGE 1

DECLARE

l_emails_tasks emails_tasks % ROWTYPE;

BEGIN

SELECT *.

IN l_emails_tasks

OF EMAILS_TASKS

WHERE TASK_ID =: P8_TASK_ID;

APEX_MAIL. SEND (MORE CODE)...

PAGE 2 PROCESS

C1 (SELECT SINGLE EMAIL

E-MAILS

WHERE EMP_ID =: P8_TS_OWNER) LOOP

If c1.email is not null then

APEX_MAIL. SEND (MORE CODE)...

No, use select in and avoid loops when you can do without them.

Tags: Database

Similar Questions

  • When I try to install Lr CC (2nd install, a laptop) the procedure goes into an infinite loop: log / level, level/sign in, etc. Actually, it does not download.

    When I try to install Lr CC (2nd install, a laptop) the procedure goes into an infinite loop: log / level, level/sign in screens, etc. Actually, it does not download.

    I have no problems with the first installation on a desktop.

    You can download at the bottom of the link:

    https://helpx.Adobe.com/Lightroom/KB/Lightroom-downloads.html

    If you had purchased a subscription, you will need to install via Adobe Creative Cloud app.

  • Yoga 2 13 - How do I change the speed of the cursor Clickpad

    Hi all

    Just a quick question on how to change the speed of my cursor while using the Clickpad/Trackpad. For the time being, it moves quite slowly, I would increase the DPI that it moves.

    I've been through properties and mouse pointing device properties, and I can't seem to find an option here.

    Any help would be appreciated.

    Thank you

    Gavin

    Control Panel/mouse/pointer options. Same as with a mouse.

  • Automator: use the variable & selected as parameters for shell files

    I rarely use Automator, but it is useful to create services.

    I have a shell script that the tags of the files, and in a service, he travels the files selected in the Finder.

    What I can't get my head is the way to ask the user for the tag to be applied (either as a literal or choose from the list) and then pass this as the file list for the shell as a parameter.

    You're talking about text tags?

    You can use Ask for the text, and then set the Variable, then before run you Script Shell, Get Variable.  If this is the only variable passed, then it will be '$1 '.

    If you click on the [results] in the action before to run the Shell Script, you can see the order of the variables passed:

    Note: $1 should be quoted: echo "$1"

  • How can I increase the space put into service for a data store in vSphere

    Using vSphere client 4.0.0 (208111) and vCenter Server 4.0.0 (162856)

    I have a 850 GB data store set up that shows only 525 GB configured.  My users are bumping into the ceiling and I need to give them more space.  I can't find a setting that allows me to do this.  What are my options here?

    Thank you

    How many Virtual Machines on your ESXi host? What is the size of the virtual disk to a virtual machine that has the problem? You can change the size of the disk in editing parameters for the virtual machine with problems?

  • Cursors in PL/SQL for loop problem

    Hello. I have a problem with line 6 in this code. It should write the name of each table as well as the number of tuples on the inside. However, he does not 'row.table_name' as the actual table name.

    Declare the cursor tableNames IS select table_name from user_tables;
    numberOfTuples number (10);
    Start
    for tableNames line
    loop
    Select count (*) in the numberOfTuples of row.table_name;
    dbms_output.put_line(Row.table_name ||) « a » || numberOfTuples | "n tuples.");
    end loop;
    end;
    /

    ERROR on line 6:
    ORA-06550: line 6, column 46:
    PL/SQL: ORA-00942: table or view does not exist
    ORA-06550: line 6, column 1:
    PL/SQL: SQL statement ignored

    Published by: 938330 on 3.6.2012 09:08

    Yes. You must use "immediate execution" here.

    This SQL statement is a dynamic sql, that is, the full text is not known prior to execution.

    If you ask a fixed table as a student, employee, etc... You can query the table directly.

    Here, you generate the table dynamically via a cursor name. So here, Oracle is considering "row.table_name" in tabular form (as a student or employee) and saying table/view does not exist.

    Kind regards
    CSM. S/N

  • Speed of the tool Selection

    I'm using Photoshop CS2.

    I want to I like to use the selection tools in a zoomed view. When I use one of the selection toolsand try to move in any of the image that is out of the window, instead of scrolling through to speed reasonable he zips across the page as a sort of demented and very boring rocket launcher. I tried slowwing my mouse all the way to the minnimum speed, and it still does the same thing. How do I slow it down?

    Welcome to the forum.

    Yes, this happens a lot, and not just with the PS and the selection tools. You should see WordPerfect, when I drag to Select - it is a blur and I can't seem to stop, until he was selected in the document - dang, these fast computers.

    Now, let's see if a change in your workflow can help. When you get near the edge of your point of view, do not pass the margin of scrolling of the promotion. Instead, hold down the SPACEBAR to get 'the hand '. Scroll manually to the next area, that you want to work and release the space bar to return to your selection tool. It works fine for me.

    Good luck

    Hunt

    PS:

    as a sort of RPG denies

    Loved this description!

    Post edited by: the_wine_snob - fixed the space bar instructions

  • 404 error when the lowest selection (column name) for the metadata 11 g dictionary


    Hi all

    I get a 404 error when I select a column name and click the link for dictionary of metadata. I get the 404 because obiee is allowing more 179 characters for the web link. You do not get a 404 error if you click on one of the shorter column names.

    When you select the number of offices with commands and then click the metadata dictionary button you get the error 404 below and the web address is truncated causing the 404

    This is the product link

    http / / self/analyticsRes/SampleAppLite_BI0024/SubjectArea/PRCAT_Sample_Sales_Lite80cb6a2e /.

    PRT_Calculated_Facts80cb6aa9/PRC_N_of_Offices_with_Or80cb6cfb.x

    If you type the ml at the end, you can see the Web page you want. Also if you click on the area in question and then click the dictionary of metadata and access the column from here the link works.


    otn screen shot2.png

    We receive this error in our Dictionary of metadata generated, but I can also reproduce the problem with the sample app, we have placed the dictionary in the folder anlyticsRes.

    I just wanted to check to see if someone else has this problem.

    Thanks in advance!

    S. Clark

    I opened a SR and a bug has already been reported, and the solution is in the latest patch.

    Solution

    The fix for the Bug 17449036

    is included in the bundle 20124371 Patch (patch bundle 11.1.1.7.150120). See this note for more information:

    Note 1488475.1: OBIEE 11 g: required and recommended patches and Patch Sets

    There is also a one-off Patch 17449036 on top of previous patch bundle for different platforms.
    It is advisable to be in the latest patch bundle. In this case, you prefer to apply exceptional measures, you can do but
    It is not for all platforms and all the patches together.

  • Why the speed of the cursor would affect a button?

    Hi all, I use Flash MX, MX 2004... so I think that this means that my version of ActionScript is pre - 2.0.  Hope that's enough info, but I am happy to include more.  I tried the file-> Publish Settings-> Flash but have not seen my version AS.

    Long story short, I have a menu drop down created simple.  When I roll over a menu button, a submenu (film).  When I roll off the button or the menu SUP, I have an invisible button that surrounds the film button and submenu menu with action:

    {run}
    Play();
    }

    It takes in the next section, which has a stop action and no submenu.  The menu actually works very well; exactly as it is supposed to.  So why do I write this?  Because I noticed that when I move my cursor quickly the invisible button, it does not activate and the submenu remains open.  Slowly or moderately, the button is enabled and I have no problem.  If anyone else has experienced this?  If I move quickly the pointer over several buttons, they all just stay open until the re-tipped, which is very ugly.  I'm hoping to challenge the button, or create something that makes the time-out and collapse if the pointer is not present.  Not sure if this is possible.  Suggestions?  Be gentle!  I'm a Flash noob!

    Flash check your mouse position (and everything else) at discrete intervals.  your framerate determines the frequency at which flash, among other things, questioned the scene to detect your position of the mouse.  If your framerate is low or high speed mouse (or some combo), flash will miss a rollover.

    to minimize, increase your pace at 24 or 30.

  • Adjust the space put into service for AppStack?

    I hope that's not too obvious, but I'm not clear on how to adjust the storage provisioned that takes an AppStack. When you create an accessible writable volume, the system asks the storage space that you want to configure for this. AppStacks do not, and seem to be defaulting to 20 GB in my 2.10 environment assessment. Only this value from the template.vmdk assigned in Config > storage for AppStacks? I don't see anything in the center of doc to 2.10 on create or adjust the existing template and Adobe Reader just doesn't have much wiggle room! =)

    Any help appreciated - thanks in advance!

    Apparently I missed this KB, which solves the specific problem I look: VMware KB: creating an App AppStack VMDK Volumes smaller than 20 GB model

    Do not hold account, will test and reconfig based on the KB. Move along!

  • How can I clear the shift registers of sub for loop for each iteration of a larger loop?

    Hello

    I write a program to concatenate multiple text files.  However, I need to treat each column individually before they are concatenated.  I use one for a loop at normalze 6 columns choice the largest loop of concatenation.  However, the shift registers store data from previous iterations of the larger loop.  How can I clear the shift registers of the void loop based on the iteration of the larger loop?

    Thanks in advance!

    OK, that's fine. are there headers?

    In all cases, all you need to do is to place all of the 2D array in the shift register of the inner loop, iterate over the columns relevant to be normaized (use 'index array' to get the column it normalize, put it to help to "replace the subset of table".) You probably want to initialize the outer loop shift register. Use then "building the table" added to the beginning or the data of each file sets.

  • Blue screen and the computer goes into a reboot loop after every 15 minutes

    Original title: fix blue screen

    Computer stops automatically at almost every 15 minutes apart, the blue screen appears and is long enough to read the information to fix this.  Computer automatically restarts.

    Hi Lady Cole,.

    a. when the issue occurred?

    b. remember to make changes to your computer before the problem?

    Step 1:

    To disable the automatic restart in case of system error, follow these steps:

    a. restart your computer and start pressing F8 on your keyboard. On a computer that is configured to start to multiple operating systems, you can press the F8 key when the Boot Menu appears.

    b. Select disables automatic system failure reboot when the Windows Advanced Options menu is displayed and press ENTER.

    When a problem causes a blue screen of death or another major error that stops the system, the computer restarts automatically. Need to restart manually, and you would be able to note the error message and after return.

    A description of the options to start in Windows XP Mode: http://support.microsoft.com/kb/315222

    Step 2:

    Start your machine in safe mode and check if the problem persists.

    Step 3:

    If the problem does not occur in safe mode, I would like you to put your machine in a clean boot State in order to determine whether the problem is caused by a conflict of third party software. Clean boot helps eliminate the conflict of third party software.

    Note : do not forget to restart your machine as usual.

    Azeez Nadeem - Microsoft Support [If this post was helpful, please click the button "Vote as helpful" (green triangle). If it can help solve your problem, click on the button 'Propose as answer' or 'mark as answer '. [By proposing / marking a post as answer or useful you help others find the answer more quickly.]

  • What is the problem in this code for loop? Help, please

    I have 9 text boxes Dynamics txt1, txt2, txt3... txt9 and I want to track the number of these dynamic text boxes that contain text only

    var i: Number;
    for (i = 0; i < 10; i ++) {}
    If (cela ['txt' + i] .length > 0)

    trace (i);
    }

    This code shows the numbers from 1 to 9 If the text boxes contained a text or not, how can I do find only filled? Thank you

    You can have a lot of problems using the variable of the textfield object and there is no advantage to using it.

    But if you choose to ignore this advice, you must ensure that your textfields and not html enabled, are not multi-line, and did not apply kerning.

    It is for beginners.  If this is ok with you, you can use:

    var nonEmptyTFNum:Number = 0;

    for (var i: Number = 1; i<>

    {If (cela ["txt" + i]! = undefined & {this ["txt" + i] .length > 0})}

    nonEmptyTFNum ++;

    }

    }

    trace (nonEmptyTFNum);

  • For loops with the cursor line and indexing

    Hi all

    I have a question about the loops with the cursor, line and indexing.

    How can I scan via a cursor with an iterator?

    I would use an iterator as

    Whole LoopIndex;
    Whole LoopIndex2;

    for LoopIndex at the beginning of the cursor at the end of the cursor
    loop
    line =: cursor [LoopIndex];
    for LoopIndex2 of LoopIndex at the end of the cursor
    etc...
    end loop;

    I need to use an iterator because I need to use a nested for loop.



    OR


    How can I solve the following problem?

    Class name % ofClass average test Score
    1 Niobe 7 8 8.4
    1 alena 4 7 7.5
    1 9 7 8.9 Estia
    1 Lilly 10 8 9.8
    1 Sandra 6 8 8.3
    1 Melanie 8 8 8.1
    Nadia 2 8 3 4.4
    Sayuki 2 9 8 8.4
    Diasy 2 7 8 8.0
    Flower 2 7 8 6.5
    Diana 2 6 8 7.3
    3 Flora 7 8 5.8
    Sukiya 3 4 8 8.4
    Samantha 3 10 8 7.7
    Roxanne 3 7 8 6.9
    Eline 3 8 8 7.4

    I need to
    -By class, I need to recalculate each average people
    -By class, I need to calculate the % of class score (sum averages / people in the class)

    So it can be done in a nested for loop?
    Or do I just step by step?

    Well, based on this information it would be something like...

    SQL> ed
    Wrote file afiedt.buf
    
      1  with t as (select 1 as Class, 'Niobe' as Nm, 7 as Score, 8 as Tests, 8.4 as Average from dual union all
      2             select 1, 'Alena', 4, 7, 7.5 from dual union all
      3             select 1, 'Estia', 9, 7, 8.9 from dual union all
      4             select 1, 'Lilly', 10, 8, 9.8 from dual union all
      5             select 1, 'Sandra', 6, 8, 8.3 from dual union all
      6             select 1, 'Melanie', 8, 8, 8.1 from dual union all
      7             select 2, 'Nadia', 3, 8, 4.4 from dual union all
      8             select 2, 'Sayuki', 9, 8, 8.4 from dual union all
      9             select 2, 'Diasy', 7, 8, 8.0 from dual union all
     10             select 2, 'Blossom', 7, 8, 6.5 from dual union all
     11             select 2, 'Diana', 6, 8, 7.3 from dual union all
     12             select 3, 'Flora', 7, 8, 5.8 from dual union all
     13             select 3, 'Sukiya', 4, 8, 8.4 from dual union all
     14             select 3, 'Samantha', 10, 8, 7.7 from dual union all
     15             select 3, 'Roxanne', 7, 8, 6.9 from dual union all
     16             select 3, 'Eline', 8, 8, 7.4 from dual)
     17  --
     18  -- END OF TEST DATA
     19  --
     20  select class, nm as "NAME", score, tests, average
     21        ,round(((average*tests)+score)/(tests+1),1) as avg_person
     22        ,round((average / sum(average) over (partition by class))*100,1) as class_average
     23  from t
     24* order by class, nm
    SQL> /
    
         CLASS NAME          SCORE      TESTS    AVERAGE AVG_PERSON CLASS_AVERAGE
    ---------- -------- ---------- ---------- ---------- ---------- -------------
             1 Alena             4          7        7.5        7.1          14.7
             1 Estia             9          7        8.9        8.9          17.5
             1 Lilly            10          8        9.8        9.8          19.2
             1 Melanie           8          8        8.1        8.1          15.9
             1 Niobe             7          8        8.4        8.2          16.5
             1 Sandra            6          8        8.3          8          16.3
             2 Blossom           7          8        6.5        6.6          18.8
             2 Diana             6          8        7.3        7.2          21.1
             2 Diasy             7          8          8        7.9          23.1
             2 Nadia             3          8        4.4        4.2          12.7
             2 Sayuki            9          8        8.4        8.5          24.3
             3 Eline             8          8        7.4        7.5          20.4
             3 Flora             7          8        5.8        5.9            16
             3 Roxanne           7          8        6.9        6.9          19.1
             3 Samantha         10          8        7.7          8          21.3
             3 Sukiya            4          8        8.4        7.9          23.2
    
    16 rows selected.
    
  • my external cd will not appear in the finder or on the desktop.  I went into preferences for the finder and intended to show the CD, I can load a blank cd and iTunes says and I burn on it then the cd will appear on the desktop.

    I don't see my external cd in the finder under devices, I can load a blank cd and iTunes says it's white and I can burn songs, then the cd icon appears on the desktop, went into preferences for the finder and ticked the box show the cd.  Help please?  CD has been disconnected and placed back started loading but no show, iMac says he had an attached cd when I search.

    CD/DVD players don't appear that a disk is inserted. It's normal.

Maybe you are looking for