resultset: retrieving buttress values index contra retrieving label
when controlling jdbc, i mostly opposing constructs
resultset rs = ps.executequery();
while (rs.next()) {
int id = rs.getint(1);
// actions
}
i asked myself (and authors formula too) since labels retrieving buttress values:
int id = rs.getint("customer_id");
the best reason i've listened something concerning performance. nonetheless actually, does guess severely fast? i don't trust so, nonetheless i have never achieved measurements. even retrieving tag bit slower, nevertheless, yield improved readability flexibility, opinion.
so someone give me good reason avoiding collect buttress values buttress index instead buttress label? pros cons both approaches (maybe, concerning certain dbms)?
Comments
Post a Comment