How to call two variables that are to keep several value in loop for

Hello

I have 4 point, two list and two checkbox select. ID and class Section are select list and student id and the id of the object are check .i want to insert more id then a topic in the table corresponding to the student id then a plus.

for example. When I select the IDs of class 1 and section A then student of class 1 and section has come into student card (checkbox element) and all the object corresponding to the class 1 comes in the object id (item checkbox).

now I want to insert several selected for what is, multiple student topics in at table when I press submit Button.

My table is

CREATE TABLE 'STUDENT_SUBJECT_DETAIL '.
(NUMBER OF 'S_NO',
NUMBER OF "STUDENT_ID,"
VARCHAR2 (50) "SUBJECT_ID",.
"SESION' VARCHAR2 (50)
)
/


I use this Code

DECLARE
STU wwv_flow_global.vc_arr2;
VOID wwv_flow_global.vc_arr2;

Start
STU: = wwv_flow_utilities.string_to_table(:P57_STUDENT_ID);
SUB: = wwv_flow_utilities.string_to_table(:P57_SUBJECT_ID);
I'm looping 1.STU.count
I'm looping 1.SUB.count
insert into STUDENT_SUBJECT_DETAIL
values (CLA_SUB_ID_SEQ.nextval, Stu (i), (i) Sub,: p57_SESION);
end loop;
end loop;
END;

Published by: Ed on November 20, 2009 22:10
DECLARE
    STU wwv_flow_global.vc_arr2;
    SUB wwv_flow_global.vc_arr2;
BEGIN
    STU:= wwv_flow_utilities.string_to_table(:P57_STUDENT_ID);
    SUB := wwv_flow_utilities.string_to_table(:P57_SUBJECT_ID);
    FOR i in 1..STU.count LOOP
        FOR i in 1..SUB.count LOOP
            insert into STUDENT_SUBJECT_DETAIL
            values(CLA_SUB_ID_SEQ.nextval,STU(i),SUB(i),:p57_SESION);
        end loop;
    end loop;
END;

None good for me:

1. you have 2 loops, and they are both using the variable I as a counter.
2. your insert must be in the form: insert into table (column names) values (to be inserted)
3. why not use a trigger to get the nextval in the sequence?

Trent

Published by: tr3nton on November 21, 2009 16:16

Tags: Database

Similar Questions

  • How to create the home group and how to connect two computers that are running windows 7. and also Remote Desktop connection!

    Someone help me how to create the home group and how to connect two computers that are running windows 7. and also Remote Desktop connection!
    step by step information!

    Hello

    I suggest you to refer to the links and check if it helps:

    Create a homegroup

    http://Windows.Microsoft.com/en-us/Windows7/create-a-HomeGroup

    Join a homegroup

    http://Windows.Microsoft.com/en-us/Windows7/join-a-HomeGroup

    Setting up a network home

    http://Windows.Microsoft.com/en-us/Windows7/setting-up-a-home-network

    Remote Desktop connection

    http://Windows.Microsoft.com/en-us/Windows7/products/features/Remote-Desktop-connection

    What types of connections remote desktop should I allow?

    http://Windows.Microsoft.com/en-us/Windows7/what-types-of-Remote-Desktop-connections-should-I-allow

    Remote Desktop connection: frequently asked questions

    http://Windows.Microsoft.com/en-us/Windows7/Remote-Desktop-connection-frequently-asked-questions

    Let us know if it helps.

  • How to harvest two images that are overlapping?

    I was hoping someone can help me with this. I Googled it a little and tried different things, but cannot understand this. I don't even think that I have the correct terminology.

    I try to combine the two images. I have attached an image that illustrates what I'm tryng to do - I want to take a common stick figure and cultures so that part of it is hidden and looks like it is coming from a door or a hole. How I get there parts that are outside the door? I know this is probably very simple, but I just can't understand it!

    PORTAL.PNG

    Thanks for any help you can offer me.

    Mary

    Artificial intelligence you have to work with duplicates and slice things, that is to put the part of the dorframe which is originally under the figure, the upper part above and then use a copy of the top to cut the dark areas of the figure with Pathfinder operations or a clipping path.

    Mylenium

  • How to plot two variables when neither are expressed in time?

    I know how to trace a variable against time, but how to plot two variables when neither one of them are time against each other. For example if I want to draw Let's force against remote what is the best approach to use?

    Thank you.

    Use an XY Chart. Use context-sensitive help to see the expected data type and refer to the examples. Consider what follows, don't forget to rename the scale labels and name:

  • How can I create a cluster of two instances that are running on the same server?

    Hello
    I can't find how to create a cluster or even a rule of failover for my two instances that are running on the same server ODSEE 11 GR 1 material.
    Could you please help?

    Thank you

    Hello
    Clustering (intended as Sun Cluster, Veritas Cluster, etc...) IS NOT supported since 7.0:

    http://docs.Oracle.com/CD/E20295_01/PDF/821-1216.PDF [page 20]

    and, according to my own experience, is the WORST way to achieve high availability of Service LDAP directory and in a way almost CONCEDED for replication problems in your topology (lock, split, re-init, etc...).

    Please use the "application level" collection that you get out of the box with the multimaster replication.

    http://docs.Oracle.com/CD/E20295_01/HTML/821-1217/index.html

    http://docs.Oracle.com/CD/E20295_01/HTML/821-1220/fhkry.html#scrolltoc

    HTH,
    Marco

  • How to remove special characters that are not available in the key board

    Hi all
    How to remove special characters that are not available in the key board.
    select '106    ©      500049' str from dual;
    
    After removal of the special symbols ( not only copy right, it can be any special symbol other than key board symbols), I want to add a single space between two number.
    
    Output should be like:
    Str
    106 500049
    Thank you for your help in advance.
    select
     '106    © ® (k)      500049' str
    ,regexp_replace('106    © ® (k)     500049', '[^[:digit:]]+', ' ') r
    from dual
    
  • How to open zip files that are included with various tutorials?

    How to open zip files that are included with various tutorials?  Everytime I try I get the message, "It seems that the file has been moved or renamed."  I am a total novice with this stuff!  Thanks for your help.

    On Windows? Right-click on the .zip file that you want to unpack (unzip) and click on "Extract all" from the context menu.

  • How can I find photographs that are not assigned to any collection?

    Hello!

    I use LR 5.7.1 on a Mac.

    When I've airbrushed raw with PS CC images (and do not need file PSD more) I export the PSD (which is in my catalog) in JPG format and let it automatically add to my catalog. After that, I remove the PSD file. Which works very well.

    But... the new JPG file is not assigned to any collection. This is no problem unless I forgot to do it manually after export (and import).

    This brings me to my question.

    How can I find photographs that are not assigned to any collection?

    I tried with a smart collection after I found nothing suitable in the filter library. The search criteria, I tried are Source-> Collection with any of the conditions. One with an empty field, then with just a space and so on.

    Does anyone have a good tip for me?

    Thomas

    You can also add numbers if you have collections that do not use characters of the alphabet.

  • can I install PES 11 on two laptops that are not used in the same place?

    Can I install PES 11 on two laptops that are not used in the same place or at the same time?

    Yes, your license entitles you to two simultaneous activations.

  • How to call the variables of the scene inside movieClips

    How to call the variables of the scene inside movieClips

    One way would be to use "MovieClip (root)" to target variables in the main timeline... MovieClip (root) .someVariable = someValue;

  • Hi friends I want to know how to call a procedure that has values arrary as parameter?

    I have a procedure as shown below, and I am using oracle 11g.

    create or replace procedure procedureName (v_hospital_id in NUMBER,

    v_process_id VARR_VARRY,

    v_cnt OUT NUMBER);

    Now, how to call this procedure from PLSQL. If v_process_id values ('abc123', 'xyz234', 'sfs234')

    Please present the definition of VARR_VARRY

    If it's a simple table of varchar2.

    declare

    v_cnt NUMBER;

    Start

    procedureName (1, VARR_VARRY('abc123','xyz234','sfs234'), v_cnt);

    end;

  • Whenever I try to open a new tab in Safari, it closes in on my previous page. How should I do so that I can have several tabs open?

    Whenever I try to open a new tab in Safari, it closes in on my previous page. How should I do so that I can have several tabs open?

    What version of OS/Safari do you use?

    Try a reboot.

    Make a backup using Time Machine or a cloning program, to ensure that data files can be recovered. Two backups are better than one.

    Try to set up another admin user account to see if the same problem persists. If back to my Mac is enabled in system preferences, the guest account will not work. The intention is to see if it is specific to an account or a system wide problem. This account can be deleted later.

    Isolate a problem by using a different user account

    If the problem is still there, try to start safe mode using your usual account.  Disconnect all devices except those necessary for the test. Shut down the computer and then put it up after a 10 second wait. Immediately after hearing the startup chime, hold down the SHIFT key and continue to hold it until the gray Apple icon and a progress bar appear. Startup is considerably slower than normal. This will reset some caches, forces a check for directory and disables all start-up and connection, among other things. When you restart normally, the initial restart may be slower than normal. If the system is operating normally, there may be 3rd party applications that pose a problem. Try to delete/disable the third-party applications after a reboot using the UN-Installer. For each disable/remove, you need to restart if you do them all at once.

    Safe mode

    Safe mode - Mavericks

    Safe mode - subject

    Safe mode - Yosemite

    Safe mode - on El Capitan

    Start Mode without failure-El Capitan.

  • Combine two objects that are close?

    During the livetrace matrix forms often get broken during their visit to vector, for example:

    http://img594.imageshack.us/img594/9189/closej.png

    I can't find an option to merge narrow shapes to unite and get rid of the whitespace. The only options I found that apply are if shapes overlap. Since these objects so much that I'd really like the ability to select several objects and unify their fractures livetrace railways, get rid of the white space. is this possible?

    These lines are often a few aberrations of the illustrator of smoothing onscreen, even when the adjoining paths, in fact, coincide.

    During the livetrace matrix forms often get broken during their time at vector

    There is no form of raster (in the plural). There is a raster image (its shape is rectangular). The image raster does not get broken. The raster image is not "transition to the vector."

    The autotrace program just trying to draw objects entirely new and distinct - traced - forms whose try correspond to groups of same color pixels in a raster image. The defintion of 'same' depends on the user specifies parameters of sensitivity.

    I'm not picking apart you with semantics simple here. Unrealistic expectations about matrix are epidemic these days, mainly because of claims of selling overvalued.

    I can't find an option to merge narrow shapes to unite and get rid of the whitespace.

    Fusion (Boolean union) is not logical for the railways without intersection. As long as the paths are not in reality, the distance between them has nothing to do with it. Imagine a circle of vector of one side of the page and a square of the vector on the other. What it would mean to "merge" the two forms into one?

    Without additional specific criteria, these two forms could be "merged" in your sense, in an infinite number of ways. If the accuracy of the autotrace (assigned by your settings and the real colors of the image) translates autotraced paths that don't, in fact, intersect, the autotrace will not be automatically some specific criteria to "merge" the railways without intersection.

    The only options I found that apply are if shapes overlap.

    Who has a sense, because that would be the areas of intersection itself that define the criteria by which the railways concerned are met.

    So if your autotrace is, indeed, yielding undesirable completely without intersection of the paths that you think should be a path, you must decrease the sensitivity of detection of color matrix settings so that the colors of the almost-but-not-quite-the-same pixels are interpreted as a region of contiguous color. But be aware that a change in parameters will affect matrix for the entire image, not just for this particluar region. So there may be other compromises in other areas of the image.

    Such is the nature of the matrix. It is not a clear and precise 'conversion' of a 'format' (raster) in another (vector) 'format'.

    Think of a fence of stone compared to a close of brick of the same size. Closing of natural stone is composed of stones of irregular shape, interconnected to minimize differences. The fence in brick made of rectangular bricks, same size, is perfectly attached.

    Matrix is an attempt to write a software algorithm that takes a particular brick fence (collection of same color pixel raster format) and to build an entirely new and separate stone Hedgerow (collection of traces in the form of various ways) of the same size. She does without any human intelligence or judgment artistic whatsoever as to what 'must' or 'no' be considered to be a "stone". How hard he tries to "custom chisel" each of these stones as more natual closely locking and minimize the gaps depends directly on the autotrace parameters. It's always a compromise compared to what would be done if the stones were individually carved by hand, eye and human judgment.

    JET

  • How to target the buttons that are nested by 2 levels and one more thing...

    OK I'm going.  The link below, this is what I deal with

    http://clienttestsite.X10.MX/beta/garage.swf

    The garage door has a chevrolet logo that is thrilling. I know not how to make buttons but I need the garage door to become a button when you click on the animation plays instead of playing automatically.

    The upper part of the chest of the tool will be a button that plays the animation backwards and the drawers are the buttons that open to an e-mail for each form.  But I do not know how to target those buttons because they are nested two levels below the main timeline.

    In the case where he changes the way to proceed, once completed this film will be imported in another.

    Help, please!

    Thanks in advance.

    As long as the object that you want to make clickable is an object with an instance name (movieclip, button, etc.) you can make it work like a button.  If you know how the code for the buttons, then this should be everything you need to know to make the garage door a clickable object.

    Target buttons that are nested you can use the point rating to target... Since you did not identify the details of nesting, here's how it goes mainly...

    Toolchest.Drawers.drawer1.addEventListener(...etc)

  • How to remove the files that are most referenced in the catalogue

    Over the years, we have a number of files (raw files ~ 650) who withdrew from the catalog but not my hard drive. This happens mainly because I used the wrong combination. But now I am stuck how can I find and delete these files?

    Best strategy so far:

    -Use Synchronize folders to search for the missing files from the catalog

    -The re-importation of a keyword - deleteme.

    I'd really rather avoid this because I really don't want to take the risk of any chance to have these files. Any other ideas?

    See you soon

    Mark Levison

    Blog | Twitter | Office: (613) 862-2538

    In each of your folders in Lightroom, create a new folder and call it temp. In Lightroom, move the images that are located in the folders to temporary folders. Go to your finder and delete these images that were not moved to the temp folder. (ie. those that Lightroom was not aware of) Move images back in Lightroom, and then delete the temp folder.

    Personally, I'd go with import via synchronization of the top-level folder and then delete the images as you watch the "previous import" and get rid of all 650 photos at once. No necessary but useful keyword as a security measure.

Maybe you are looking for