If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
Using the sequence of db2 from db1 for inserting a record
From db1 ...I am trying to insert into db2...All the columns inserting correctly ...except the field with sequence value...
I have a sequence created in db2 named 'seq_request'.
I am not able to use the sequence of db2('seq_request')...Pls see the below insert statement
Is there any specfic way to use the sequence...do i have to give the db link name also..
"INSERT INTO TESTUSER.AUDIT123@MAINLINK(AUDITFIELD2,AUDITFIELD1 ,SEQ_REQUEST) VALUES ("test1","test2",SEQ_REQUEST.NEXTVAL)";