in reply to Re: Q & A
in thread Q & A

One minor point of style/performance is that it is often nice to use placeholders.
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)
This technique is know as using placeholders and has several advantages to your technique of interpolation in the SQL statement.