This technique is know as using placeholders and has several advantages to your technique of interpolation in the SQL statement.my $sth = $dbh->prepare( 'SELECT Questions, Answers from QA where ID = + ?' ); $sth->execute($id); # put your bind_columns and fetches in # and if you really want then you can do $sth->finish; $sth->execute($id2); # and get another set of data (thought this situation doesn't look lik +e it wants that)
In reply to Re: Re: Q & A
by repson
in thread Q & A
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |