in reply to Avoiding too many DB queries
Just a nitpick. Don't do this:
Do this instead:$dbh->do("INSERT INTO chain (pdb,chain) VALUES ('$pdb','$ch')");
and let DBI do the quoting for you.$dbh->do("INSERT INTO chain(pdb,chain) VALUES(?,?)",undef,$pdb,$ch);
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)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Avoiding too many DB queries
by seaver (Pilgrim) on Jun 18, 2004 at 17:23 UTC | |
by eric256 (Parson) on Jun 18, 2004 at 17:42 UTC |