|
|
| We don't bite newbies here... much | |
| PerlMonks |
Re: DBI recipesby adrianh (Chancellor) |
| on Aug 17, 2003 at 21:20 UTC ( #284450=note: print w/ replies, xml ) | Need Help?? |
|
Nice. ++. A variation on the hash-binding theme is to use the contents of the statement handles NAME attributes as the hash keys. Since in most instances you'll be interested in all the keys you are selecting this can be a useful shortcut. For example (untested code):
In general the NAME attributes of statement handles are useful to avoid duplicating lists of fields in your SQL and in @fields type arrays.
In Section
Meditations
|
|
||||||||||||||||||||