#1 2011-12-19 09:41:55

vital_parsley
Member
Registered: 2011-12-08
Posts: 171

AUTO INCREMENT COLUMN

HI,

I need some help here.

I have a table say Table A and a target Table B

A is inserting data into B
While doing so every record that is entering B a new incremental value is entered in it.

I m using Oracle for Target i,e target B

How to achieve this.
Please help !

Can i do this with an expression that increments a number everytime a record comes in like --> rownum  = rownum + 1
OR
Do i have to mention tat column as an auto increment using sequence of oracle.
OR
is there another functionality to achieve this ?

Last edited by vital_parsley (2011-12-19 09:51:28)

Offline

#2 2011-12-19 09:53:03

pedro
Member
Registered: 2011-11-17
Posts: 3682

Re: AUTO INCREMENT COLUMN

Hi
You can use component tMap and set the expression of column in out1 as follow.

Code:

Numeric.sequence("s1",1,1)

Use a context variable to replace 's1'.

Best regards!
Pedro


Only Paranoid Survive.

Offline

#3 2011-12-19 09:57:11

vital_parsley
Member
Registered: 2011-12-08
Posts: 171

Re: AUTO INCREMENT COLUMN

Thanx, i will do that !

Offline

Board footer

Powered by FluxBB