![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
More than that, if any body can give me a way to update a million records as fast as i can..right now it takes a hell longer...with executebatch it takes 1000recrods per min...is there a way to puch the performance even faster? |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
YEP...but now i ahve given it up...came accross something called positioned fetch... can anyone tellme how to fetch using java????? declare a cursor and then fetch...from the cursor.... essentially do this in java... EXEC SQL DECLARE C1 CURSOR FOR SELECT * FROM EMPLOYEE FOR UPDATE OF JOB; EXEC SQL OPEN C1; EXEC SQL FETCH C1 INTO ... ; if ( strcmp (change, "YES") == 0 ) EXEC SQL UPDATE EMPLOYEE SET JOB = :newjob WHERE CURRENT OF C1; EXEC SQL CLOSE C1; |
![]() |
| Thread Tools | |
| Display Modes | |
| |