Vince75
Chemical
- Aug 23, 2004
- 1
Hello !
I have a table which have different fields :
cd_id, desc1, desc2 ...
cd_id being the key
Using java, I have two different arrays :
One contains values I want to use to update the field desc1
The other one containing corresponding cd_id
eg :
desc1[0]=12 cd_id[0]=6
desc1[1]=165 cd_id[1]=68
...
Is that possible to write a single query that would update the desc1 field, putting each value at the correct line ? Now I update each value at a time using a loop, but it just takes forever !!!
Many thanks
Vincent
I have a table which have different fields :
cd_id, desc1, desc2 ...
cd_id being the key
Using java, I have two different arrays :
One contains values I want to use to update the field desc1
The other one containing corresponding cd_id
eg :
desc1[0]=12 cd_id[0]=6
desc1[1]=165 cd_id[1]=68
...
Is that possible to write a single query that would update the desc1 field, putting each value at the correct line ? Now I update each value at a time using a loop, but it just takes forever !!!
Many thanks
Vincent