Hi Priya,
If you set the values in the PreparedStatement, the
data selection is done
by the database system, which, probably, is faster
in data proccessing than
the program you´re writing. You only get the
values that matches
the where clause instead of getting all
the values.
Althought the transaction could spend a little more (depends on the amount
of data you have), the data flow is less and, probably, faster. This doesn´t
matter much if you have a good conection and bandwidth.
So I advice you to set the values in the
PreparedStatement Object.
I hope this helps,
Sergio
|
- JDBC question - PreparedStatem... Ramaswamy, Rathnapriya (CORP, GTS, L531741)
- Re: JDBC question - Prepa... Mark Galbreath
- Re: JDBC question - Prepa... Ramaswamy, Rathnapriya (CORP, GTS, L531741)
- Re: JDBC question - P... Jozef Chocholacek
- Re: JDBC question - P... Peter Huber
- Re: JDBC question - P... Sergio
- Re: JDBC question - P... Anthony Tagunov
- Re: JDBC question - Prepa... Godbey, David
- Re: JDBC question - Prepa... Ramaswamy, Rathnapriya (CORP, GTS, L531741)