
Anonymous
Not applicable
2007-10-19
08:29 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
[resolved] Oracle sequence while insert.
Hi,
Anybody has an experience to use oracle sequence while inserting. what is the way to get the sequence which is defined in oracle to use with TOS database components?
regards,
sebastianr
Anybody has an experience to use oracle sequence while inserting. what is the way to get the sequence which is defined in oracle to use with TOS database components?
regards,
sebastianr
665 Views
- « Previous Replies
-
- 1
- 2
- Next Replies »
1 Solution
Accepted Solutions

Anonymous
Not applicable
2007-10-21
04:59 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Additional Columns are designed to handle db columns which needs instructions but where there are no datas from the row.
In your component schema, you have EMP_NAME.
Configure additional column like in the picture added.
Regards,
Michaël.
In your component schema, you have EMP_NAME.
Configure additional column like in the picture added.
Regards,
Michaël.
609 Views
10 Replies

Anonymous
Not applicable
2007-10-19
11:14 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
Use the additional columns table.
Regards,
Use the additional columns table.
Regards,
609 Views

Anonymous
Not applicable
2007-10-21
08:49 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Dear Mhirt,
Using "Additional Columns" option, how can use oracle sequence? I dont want generate the numbers in TOS itself. I need to get the sequence which is defined in Oracle and increment the value while inserting.
For eg. insert into employee (EMP_SEQ_ID, EMP_NAME) values(EMP_SEQ.NEXTVAL, 'Sebastian');
Here i am using Oracle sequence EMP_SEQ. Same way i want it to be done.
If your reply addressed my query, how can it be achieved with "Additional Columns" option.
Thanks.
Using "Additional Columns" option, how can use oracle sequence? I dont want generate the numbers in TOS itself. I need to get the sequence which is defined in Oracle and increment the value while inserting.
For eg. insert into employee (EMP_SEQ_ID, EMP_NAME) values(EMP_SEQ.NEXTVAL, 'Sebastian');
Here i am using Oracle sequence EMP_SEQ. Same way i want it to be done.
If your reply addressed my query, how can it be achieved with "Additional Columns" option.
Thanks.
609 Views

Anonymous
Not applicable
2007-10-21
04:59 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Additional Columns are designed to handle db columns which needs instructions but where there are no datas from the row.
In your component schema, you have EMP_NAME.
Configure additional column like in the picture added.
Regards,
Michaël.
In your component schema, you have EMP_NAME.
Configure additional column like in the picture added.
Regards,
Michaël.
610 Views

Anonymous
Not applicable
2008-06-26
09:39 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello,
I have a problem using an oracle sequence to get value for my primary key.
I added an additional column but it doesn't work
there you ca find all screenshot.
The error is in english "sequence number not allowed here"
I hope that you can help me
Thx
I have a problem using an oracle sequence to get value for my primary key.
I added an additional column but it doesn't work
there you ca find all screenshot.
The error is in english "sequence number not allowed here"
I hope that you can help me
Thx
609 Views

Anonymous
Not applicable
2008-06-26
11:03 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
OK I've changed the SQL expression in my tOracleOutput additional column to "select hibernate_sequence.nextval from dual" and now a new error seems to appear :"ORA-00936: emissing expression"
Is it better or worst?
Is it better or worst?
609 Views

Anonymous
Not applicable
2008-06-26
12:21 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm really sorry but my issue comes from my sql expression. In fact the right expression is "hibernate_sequence.nextval" and now all works fine
thx
thx
609 Views

Anonymous
Not applicable
2010-04-29
02:25 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm really sorry but my issue comes from my sql expression. In fact the right expression is "hibernate_sequence.nextval" and now all works fine
thx
Hello all,
when I type this, I've got the next error: java.sql.SQLException: ORA-02287: sequence number not allowed here
Please, could you help me.
Thanks in advance,
Gracia.
609 Views

Anonymous
Not applicable
2010-05-03
01:12 PM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I'm really sorry but my issue comes from my sql expression. In fact the right expression is "hibernate_sequence.nextval" and now all works fine
thx
Hello all,
when I type this, I've got the next error: java.sql.SQLException: ORA-02287: sequence number not allowed here
Please, could you help me.
Thanks in advance,
Gracia.
I've found the problem: I can't use the sequence over a Key Field.
Thanks,
Gracia.
609 Views

Anonymous
Not applicable
2010-08-16
08:11 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi,
this call of sequence work fine when you use the column name in upper format
this call of sequence work fine when you use the column name in upper format
609 Views

- « Previous Replies
-
- 1
- 2
- Next Replies »