on 04-02-2014 6:25 PM
Hello Experts ,
I have Proxy to JDBC scenario ,please let know is there possible way to insert more than one line diff item for the same record ??
Could you please explain the behavior of JDBC adapter.
For Instance :
Expected Behavior:
Po number1 , item1 . ( first level of execution )
Po number1 , item2. (second level of execution )
Actual Behavior :
Po number1 , item2. (second level of execution )
In my scenario it is updating only the recent value , could you please suggest me .
Regards
Raja
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajavadivel,
>>>please let know is there possible way to insert more than one line diff item for the same record ??
If you remove PoNumber field under KEY element then it inserts more than one line diff item for the same record/diff record. Make sure that action must be UPDATE_INSERT.
What ever the field you define under Key Element that field consider it as PrimaryKey. So for new PoNumber it insert the new record and if its a same PoNumber then it update the existing record with latest item value.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
Hope you are doing as below in mapping.
Open insert statement twice and don't use PO Number as key field value .
Ex:
case1:
Insert into tablename(ponumber,item) values(123,'xyz') ;
Insert into tablename(ponumber,item) values(123,'rtz') ;
O/P:two records gets inserted
123 xyz
123 rtz
case2:
Insert into tablename(ponumber,item) values(123,'xyz') where ponumber =123 ;
Insert into tablename(ponumber,item) values(123,'rtz') where ponumber =123 ;
O/P:2nd record overwrites the 1st record
123 rtz
Regards
Venkat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.