in reply to Database Problems
jeffa
L-LL-L--L-LL-L--L-LL-L-- -R--R-RR-R--R-RR-R--R-RR B--B--B--B--B--B--B--B-- H---H---H---H---H---H--- (the triplet paradiddle with high-hat)
UPDATE:
tilly has a wonderful node on why he prefers
fetchrow_hashref over fetchrow_arrayref,
let me see if i can find it ... hmmm, not much luck. Here
is a quote from another post that will do in
the meantime. ;)
"It is a really bad idea to rely on knowing the order of columns in a database. You have a table with 20 columns. You have an insert with 20 values. If the order is off slightly, have fun debugging! As columns are added or dropped, this will be a constant source of bugs. (Just imagine if some future DBA has to do a database migration and happens to reorder the columns. Then your scripts all have to work against that..?)
This is typically an issue any time you use positional based logic. Associating things by name works much better."
-- tilly
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (jefffa) Re: Database Problems
by Coplan (Pilgrim) on Apr 16, 2003 at 16:02 UTC | |
by mpeppler (Vicar) on Apr 17, 2003 at 00:32 UTC | |
by dws (Chancellor) on Apr 17, 2003 at 00:35 UTC |