How to run a same sequence number for the dynamic lines resulting

Hi friends,

I have a sequence and the trigger (which will trigger the id for each line insertion).

My scenario is, if I update more than 5 lines of a way of time, I need to define a same example (1) sequence number for all the 5 rows.

Next time, if I update another way for 5 rows, then I need to define a sequence of the same number (i.e.) 2 for the next 5 lines.

So my update will be dynamic (can be 2, 5, 10 rows at a time), but I need a same sequence number for one of the column for all of the lines that I'm updating the value.

Next time, if I update another series of lines means, then I need to put only the next sequence number (i.e) 2 (assume this sequence previously updated to the front of the set of rows is 1) for another set of lines.

As this sequence should update in a sequential manner for more than a set of rows in this column.

How friends.

example of
id-----------------name
1-------------------A
1-------------------B
1-------------------C
1-------------------D
1-------------------E
2-------------------D
2-------------------E
2-------------------F
2-------------------G
3-------------------H
3-------------------I
Brgds,
Mini

Generate the value of the sequence and store it in a variable and use this variable in the UPDATE.

varSequence := .nextval;

update  set  = varSequence where 

Tags: Database

Similar Questions

  • Revisional Subversion: want the same revision number for the entire project tree

    Hi... currently I use oracle JDeveloper 11.1.1.2.0 with Subversion and VisualSVN Server.
    I created the user repository. .. .but after change assumes that EmployeeEO.xml its showing 2-3 after validation and after that revision engage DepartmentEO.xml his display 4... OK
    but when I go to new new copy i.e.checkout his watch do not total copy with the same number of revision for all files... pls I want the same number of revision for all files...

    User555,

    Please note: what you see is correct. Subversion is not CVS; It works the same way. The behavior you are seeing is the way Subversion works, and there's nothing that related to JDeveloper - you can see the same behavior by using the SVN command line client.

    I suggest you have a reading of http://svnbook.red-bean.com/ (especially the http://svnbook.red-bean.com/en/1.5/svn.basic.in-action.html#svn.basic.in-action.mixedrevs that describes how new users are often confused by mixed revisions).

    I quote a phrase of this document for you:

    Mixed revisions are normal

    John

  • How can I dial a phone number using the land line, internal modem for PC and LabVIEW 8.2

    I'll start writing a LabVIEW 8.2.1 program what selector to a number using my Dell Inspiron, Windows XP. Any body have any idea how I can do? or better, so anyone with a loan of vi.

    I would appreciate your help

    Thanks in advance

    Composition of a phone

  • How can I find my serial number for the version of education?

    I lost my serial number and I don't know how retreave it?

    Adjowah1 see also http://forums.adobe.com/message/4635085#4635085 where this subject has been discussed.

  • Order form does not update grand total calculation until I have indicate a number on the next line.

    I created a purchase order with a "quantity" column, a column of job description, a unit price column and a point $ column total. I've set the total column of $ point to calculate automatically once a quantity and unit price entered, and it works immediately once the unit price and quantity entered. But my grand total at the bottom of the total column $ is set to calculate all the lines of total $ point, but the total general don't not updated to reflect the $ total for a given line (e.g. line B) until I have begin to type a number for the next line (e.g. line C). So, I always end up having to create a line of extra reserved space with a quantity of 0, just to get my total general to update. Is there a way to fix this?

    It is most likely a problem with the calculation of field order. You must ensure that the total is calculated after row grand totals.

    This can be set in form editing mode, under the order of computation of Set field - other tasks.

  • several insert using the same sequence number,

    Hello

    I need to use the same sequence number in several documents (insertion).

    Is this possible and how?

    Thank you

    It depends on how you are doing multiple inserts.  If you then run a bunch of single inserts something like:

    dev1 > create table t (ID, descr varchar2 (10));

    Table created.

    dev1 > create sequence t_seq;

    Order of creation.

    dev1 > select double t_seq.nextval;

    NEXTVAL

    ----------

    1

    dev1 > insert into values t (t_seq.currval, 'Rec 1');

    1 line of creation.

    dev1 > insert into values t (t_seq.currval, "Rec 2");

    1 line of creation.

    dev1 > insert into values t (t_seq.currval, 'Rec 3');

    1 line of creation.

    dev1 > insert into values t (t_seq.currval, 'Rec 4');

    1 line of creation.

    dev1 > insert into values t (t_seq.currval, 'Rec 5');

    1 line of creation.

    dev1 > select * from t;

    ID DESCR

    ---------- ----------

    1 rec 1

    1 rec 2

    1 rec 3

    REC 2 4

    REC 2 5

    You can use a similar approach, if you select data from another table as long as you can make the selection sufficiently selective to retrieve only the lines you need.

    John

  • How can I get the phone number for the Activation of Microsoft Center in Washington State?

    I can't use the normal process to obtain the phone number for the product activation because Windows 7 says "Windows is activated". How can I contact an Activation Center to get this problem fixed. Apparently, it is not enabled because I can't use Microsoft Help and support center. HD & S centre will not accept my product ID. I used the Windows Anytime Upgrade process for Windows 7 Edition Home Premium to Windows 7 Professional. After the installation process, I activated Windows and it works beautifully.

    I am trying to establish the Windows XP Mode in Windows Virtual Machine and have hit a wall. I downloaded the three pieces but keep being told to download it again when I click on Windows XP Mode in the start menu.

    I tried to get the Support of Microsoft but get stopped on step 2 when the Microsoft operating systems will not accept my product ID of Windows 7.

    1. click on start and in the search for box type: slui.exe 4
    2. press enter on your keyboard
    3. Select your country.
    4. Select the telephone activation option and brace yourself for a real person.

    Carey Frisch

  • I bought a windows version of 11 elements and not a mac version. So I can't install the dvd and it does not accept my serial number for the "downloadversion" how this can be solved?

    I bought a windows version of 11 elements and not a mac version. So I can't install the dvd and it does not accept my serial number for the "download version" how this can be solved?

    Thank you in advance.

    Arjen

    You can also download the Mac in trial version of the software through the page linked below and then use your current serial number to activate it.

    Don't forget to follow the steps described in the Note: very important Instructions in the section on the pages of this site download and have cookies turned on in your browser, otherwise the download will not work correctly.

    Photoshop/Premiere Elements 11: l http://prodesigntools.com/photoshop-elements-11-direct-download-links-pse-premiere-pre.htm

  • I got a new macbook pro and I want to spend my Adobe Creative Suite: Production Premium programs on it. I have no more the installation disc. I have my product code and the serial number for the facilities so. How can I do?

    I got a new macbook pro and I want to spend my Adobe Creative Suite: Production Premium programs on it. I have no more the installation disc. I have my product code and the serial number for the facilities so. How can I do?

    Download and Installation Help-

    https://helpx.Adobe.com/download-install.html

    CS3 - http://helpx.adobe.com/creative-suite/kb/cs3-product-downloads.html

    CS4 - http://helpx.adobe.com/creative-suite/kb/cs4-product-downloads.html

    CS5 - http://helpx.adobe.com/creative-suite/kb/cs5-product-downloads.html

    CS5.5 - http://helpx.adobe.com/creative-suite/kb/cs5-5-product-downloads.html

    CS6 - http://helpx.adobe.com/x-productkb/policy-pricing/cs6-product-downloads.html

  • Recently, I'm subscribed to Acrobat XI after the test expired, but when I went to turn it on I was asked for the serial number. I don't have the order number on the invoice. How can I get the serial number for the trial software that is on my computer?

    Recently, I'm subscribed to Acrobat XI after the test expired, but when I went to turn it on I was asked for the serial number. I don't have the order number on the invoice. How can I get the serial number for the trial software that is on my computer?

    Hi Kenneth,

    Subscription does not have any serial number. Please use your Adobe ID to update the licensed software.

    Kind regards

    Rave

  • How can I find my serial number for my products.

    How can I find my serial number for my products.  My account now lists some of my products and gives me the license agreement but no serial number.

    To locate the serial number:
    ----------------------------

    http://helpx.Adobe.com/x-productkb/global/find-serial-number.html

  • How to enter the serial number for the sales order line that has shipped status

    Hi all

    We have 2 different items that are defined as serialized in question sales to the definition of element order.

    In order for a sale, user forgot to add the serial number to one of the item to Ship confirm step.
    He entered the serial number correctly to another element.
    Now the two lines in sales order have shipped so status view us through shipping > operations.

    I'm technical and new guy at the OM could if it you please let me know the process to enter the serial number for the item for which the user has failed

    Thank you
    Satya

    Hi Satya,
    Given that the article is already shipped, you can enter the serial number for this line.
    You must enter the serial numbers after picking confirm only.

    check this note
    How do I enter the serial numbers in the form of delivery operations [ID 1235403.1]

    As a workaround for previous lines don't RMA and try to receive the goods at your subinventory.
    For all transactions again follow the notes above.

    Thank you
    -Arif.

  • How can I find my serial number for my programs began?

    How can I find my serial number for my programs began?

    Hi aida_pc,

    Please choose the best option to retrieve the serial number. from there.

    http://helpx.Adobe.com/x-productkb/global/find-serial-number.html

    Hope this helps you.

    Kind regards

    Baudier

  • Satellite Pro A300D - what is the model number for the keyboard?

    My husband managed to dislodge a key on my keyboard CAP and broke the clip white scissors that holds up on... (don't ask me how)

    He spoke of the authorized service center here in Norway and they sent us replacement scissors tongs (actually they sent an old non-functional keyboard), but the clips are of a different design to those on my laptop.

    I was wondering if anyone has an idea of the model/serial number of the keyboard used in the Satellite Pro A300D-151 (PSAK9E) so I can get the correct replacement part.

    I really don't want to have to replace the entire keyboard when it's just 1 scissor clips which is broken... the laptop is only 5 months old.

    Here are some pictures of the scissors clamp in question and where it attaches to the keyboard (sorry for quality)

    Link: [http://img31.imageshack.us/gal.php?g=1000683o.jpg]

    Thank you

    notsure

    Hello

    Boyfriend sorry but it is not possible to exchange a few individual keys on a keyboard, so in this case, you must replace the full keyboard. But normally, it shouldn't be so difficult.
    Either you exchange the keyboard yourself or you sent the laptop to the authorized service provider.

    The model number for the keyboard is not known to me but contact your ASP! They can order all the parts of Toshiba and they should know the right part number.

    Good bye

  • VISA devices with the same serial number and the vendor ID does not work (0xBFFF003A)

    Hi all

    I need to acquire the data of two meters of power YOKOGAWA with VISA driver (USB connection).

    They work very well if used alone, but they do not work when are used toghether. In particular, when I plug in and turn on the two of them, NOR MAX shows me the following error message:

    0XBFFF003A (VI_ERROR_INV_SETUP)

    viFindRsrc return 0xBFFF003A (cannot start the operation because the installer is not valid (because of attributes defined in an inconsistent state).)

    Please make sure that VISA is properly installed on this system.

    Possible causes of this error:
    1. more than one passport may be to attempt to claim the same resource.  You can try to disable passport to understand which Passport is the cause of the error.
    2 you have connected multiple no configured plug-and-play devices that have the same name of the resource. For example, the vendor ID and the serial number may be the same.

    In fact, according to MAX, both power meters have the same serial number and the same vendor ID; so, this seems to be the reason why they do not work together.

    Can someone help me?

    Thank you all


Maybe you are looking for