How to leap a sequence
hi,
how can I leap a sequence ?
for example: curval =100
I want nextval = 100000
Thanks for your help
SQL> select s.nextval from dual;
NEXTVAL
100
SQL> alter sequence s increment by 99899 -- 99899 = 100000 - 100 - 1
2 /
Sequence altered.
SQL> select s.nextval from dual;
NEXTVAL
99999
SQL> alter sequence s increment by 1 -- restore increment
2 /
Sequence altered.
SQL> select s.nextval from dual;
NEXTVAL
100000
SQL> SY.
P.S. Nobody should be using sequence while you do the above.
Similar Messages
-
How to get selected sequence in a file
Hello,
I can get the selected sequence file by accessing the RunState.InitialiSelection.SelectedFile property. However, if i want to get the name of the sequence that was selected in this sequence file, then how can i get that?
Thanks,
Regards,
AparnaHello,
Sorry, i saw this thread a little late. My question is still the same. The solution that you gave actually gives me the display name of the sequence file. But i wanted the name of the sequence that was opened withtin the sequence file. Here is what i have.
A sequence file named TestExport.seq has two sequences - MainSequence and SecondSequence. I open up the sequence file and open the SecondSequence in that file. But i dont know how to get this information about the sequence that is selected within the file. I have an external dll, in which i am passing the sequence file name as RunState.InitialSelection.SelectedFile. But i do not know how to get the sequence name that was actually opened in that file. Because i actually want to get the sequence context of the sequence within the file. The code that i have looks like this:
public ExportDlg(SequenceFile seqFile)
InitializeComponent();
SequenceContext seqContext = seqFile.NewEditContext();
engine = seqContext.Engine;
object outParam = System.Type.Missing;
this.seqContext = engine.NewEditContext(seqFile.GetSequence(0).AsPropertyObject(),System.Type.Missing,out outParam);
seqFile.GetSequence(0) - gives me the context of the first sequence which is MainSequence. But if i have opened the SecondSequence, i need the context for that. And to get this, i need the sequence name "SecondSequence" somehow.
RunState.InitialState.SelectedSequences is an array of containers. Although i can see the sequence name during executing, i do not know how to get the name of the container my external dll .
Please help,
Thanks,
Regards,
Aparna -
I'd like to know how to play a sequence of podcasts. Does anybody know?
I'd like to know how to play a sequence of podcasts?
Finishing to hear a podcast, it comes back to main menu! Why can it play all the contents in sequence, like music?Hold down the mute button on the steering wheel until you hear,"Ready" and then say "Voice". That will bring up Siri.
-
How to create a SEQUENCE in MSSQL2005
Hi
I am also having a similar problem which opened the thread
Actually i am using a Repositery which is created in MSSQL2005.
Now i want to create a SEQUENCE similar to Oracle and populate My surrogate Key Column.
Can u tell me how to create a SEQUENCE in MSSQL2005?
Does anyone is having the sql syntax?
Thanks
GourisankarHi Gourisankar,
There is no sequence concept in MS SQL Server rather it has IDENTITY.
In MS SQL Server if you declare a column type as a Identity it will be auto increment when a new record inserts.
So in you underlying table create a column as ID and type as "Identity" and in your mapping leave that field un mapped.
Have a look and google more on "identity in ms sql server" ;)
http://www.sqlteam.com/article/autonumbering-identity-columns
http://www.craigsmullins.com/ssu_0599.htm
Thanks,
G -
How to display a sequence in item?
hi! well, i don´t know how to display a sequence in item. i created a sequence in sqlworkshop. now i want what the sequence will display in item(for example :P8_COD_SERVICES). I HOPE ANSWER. BYE
(AH! I TRYNG IN ITEM.DEFAULT VALUES BUT NOTHING)Alvaro,
Maybe the item source type could be SQL Query and the query would be: select seq.nextval from dual. Or you could have a before-header page computation do the same thing for the item.
scott -
How to setup the sequence order's of PO's vision instance
I need to create PO's in a sequential order in vision instance. How should I do that?
Thanbks
regards,Hi,
We have already mentioned how to create PO sequence in earlier post in this thread...
You need to follow below steps:
1) Login to Purchasing Super user
2) Open "Purchasing Options" form.. (Setup --> Organizations --> Purchasing Options)
3) In Document numbering section, do mention the details of PO Number, like PO Entry (Manual/Automatic), PO Number type (Numberic/Alphanumeric), Next number (e.g. 10000)
For your case use Next Number : 100000 (6 digits)
4) Save
5) Return to PO creation page and start creating POs.
Hope this will help.
Kind Regards,
S.P DASH -
How to Create Test Sequence Document in HTML using command line
How to Create Test Sequence Document in HTML using command line
I have lot of sequences and I want to create Test Sequence Documentation in HTML format using Command Line automatically, is there a way to automate this task using .bat file or using C# .NetIf you aren't able to figure out how to call a C++ DLL in .net then there may be another option. Unfortunately I don't know how to do this off the top of my head and I don't have an example.
The other option would be to change docgen.seq a little bit to the dialog doesn't display and you just hardcode the options. Then you can use a command line to call testexec.exe: http://zone.ni.com/reference/en-XX/help/370052K-01/tsfundamentals/infotopics/startup_opt/
Hope this helps,
jigg
CTA, CLA
teststandhelp.com
~Will work for kudos and/or BBQ~ -
How to create a Sequence;
Hi All,
I have a master block and child block;
I need to create sequence number in child block like 1 2 3 4
Line #
1....date1.....12......
2....date2.....xxx....
3....xxx........xxx....
4..........
When i create new customer and its detail it should start with new sequence
and some one query the records and open it then this should continue the sequence.
Thx.
Message was edited by:
J.HarshaJan, I have created the multi records it is fine,
This is about how to get the sequence numbers,
Lets say some one open one record and it have 5 detail records.
if he is in second detail record and try to insert a new record i want to show
Line id 6
I was trying with
SELECT nvl(MAX(LINE_PERIOD)+1,0) INTO l_LINE_PERIOD FROM XX_RATE_LINE RL
WHERE RL.CUSTOMER_ID=:MSF_V.CUSTOMER_ID;
if l_line_period>4 then -- we gave default 4 records
bk_id := Find_Block('MSF_LINE');
--last_record;
:line_period := Get_Block_Property( bk_id, MAX_RECORDS_FETCHED)+1;
--CURRENT_RECORD);
--MAX_RECORDS_FETCHED
end if;
CURRENT_RECORD is good if some one navigating properly always into the last record.
Message was edited by:
J.Harsha -
How to Create a Sequence Number from BI Publisher Layout editor?
How to Create a Sequence Number (1,2,3,4,......,etc) from BI Publisher Layout editor
Thank you for your replay, but <?position()?> we can used it in template builder only not from BI layout editor
I found a solution in this case we can used the following query.
SELECT
ROW_NUMBER() OVER(order by item_status) as Row, -
How to create a sequence DDL in a procedure
Hello,
i have a simple question but i dont find a solution here.
How to create a sequence DDL in a procedure ?
Thank 'sUse Native Dynamic Sql. Look at the EXECUTE IMMEDIATE command.
declare
begin
execute immediate 'create sequence xx_seq ';
end;
/Of course you need explicit permission to create a sequence. NOT through a ROLE. -
How to create a sequence in oracle forms6i
Oracle forms 6i
Hai All
I am working in leave application entry so i need to create a sequence for giving a unique number for each entry
Pls tell me the steps how to created and how to call the sequence from database
Thanks in Advance
Srikkanth.mHi,
Create sequence <sequence_name>
Start with <number>
increment by <number>
in database
eg:- create sequence test_seq
start with 1
increment by 1;
in forms
you can assign value in pre-insert trigger
Declare
cursor cur_seq is
select test_seq.nextval from dual;
begin
open cur_seq;
fetch cur_seq into :item_key ; /* :item_key give name of ur primary key field*/
close cur_seq;
end; -
How do i make sequence folders in Premier Pro CC?
I have only begun using Premiere Pro CC, and I want to know how to make different sequences in the same timeline with the same audio & video clips, so I don't have to save a new file and start all my editing all over again everytime I want to try out a different edit. I asked a friend who has used Final Cut Pro , and Premiere CS6, and she says there should be something called 'Sequence Folders' where you create a new tab for each different edit on the same timeline. However she cannot find where you create the sequence folders in CC like you used to in CS6. I'm sure it's probably a simple button or command hidden in plain sight. Can anyone tell me if this function is still available in CC please?
It sounds like you just want to create copies of your original sequence.
One of the ways to do that is to right click the original sequence (before you make any edits) and right click > copy. The right click in the media panel or in a folder in the media panel and then paste it as many times as you want copies.
Another way would be to create new sequences and copy and paste the media from the original sequence into those new sequences. -
How to assign TAB Sequence ?
Hey..
Can anybody tell me how to assign tab sequence...? I mean if I have some buttons & controls on the front panel try to visualize front panel of login ; whenever I press TAB from keyboard i want the selection of the buttons & controls should be in sequence... Can anyone tell me how to do this...?
Solved!
Go to Solution.See Edit\Tabbing Order and, right-click on control Advanced\Key Navigation
Cheers!
"Inside every large program is a small program struggling to get out." (attributed to Tony Hoare) -
How I can log Sequence File version number to database?
Hi,
As in the subject.
How I can log Sequence File version number to database?
There is nothing like that under Logging object.Do you need it in a separate field in the databse?
One option is to just add it as an additional result in a step in your sequence file.
RunState.SequenceFile.AsPropertyObjectFile.Version
Hope this helps,
jigg
CTA, CLA
teststandhelp.com
~Will work for kudos and/or BBQ~ -
How to control the sequence of a map?
Hello
we are using a send email with attachment (map) in our process design, the email body has a few pdf documents, does anyone know how to control the sequence of attachment in the email body?
thanks,Values in a map are ordered randomly, you can't predict the order.
Maybe you are looking for
-
IPhoto crashes on launch after upgrading to latest version on ios6
After upgrading iPhoto to latest version available, it crashes after every launch, on my new iPad (the new iPad, iPad 3) What I have already tried: - delete all photos - leave just one album with one (not corrupted) photo - desync albums and resync w
-
My sites are coming up in another language other then US-english? How do I correct?
with the exception of Speed Dial Page all my sites open in another language other then english-US.
-
Error installing - hard-disk space
Hi, today I tried to install Flash Builder 4 Beta 2 as Plugin on my Mac. Directory was "/development/devapps/flashbuilder". Need this directory because it's companies "standard" folder for our development stuff. I got an error saying "Warning! low di
-
Dynamic population of second list box based on the selection of first list
Hai Friends, I have the code like this. Here my issue is: when the user accesses this page he will get the topic and related categories in the drop down boxes. but when the user changes the topic it needs to populate the categories from the database
-
To trigger ADOBE form from Custom Infotype
hello, I hae create d ADOBE form and want to trigger it on "Save" record from Custom Infotype.... I need this form to be displied as User my do some changes and save it again... I have used following code to trigger this from module pool... Data : lv