in reply to How to do simple select with Net::MySQL
You would know do:$sth->prepare( qq{ select foo from bar where baz = $qux } ); $sth->execute;
This provides many benefits, some of which are saftey and speed. For far more examples and usage of place holders, see the DBI documentation and What are placeholders in DBI, and why would I want to use them?$sth->prepare( qq{ select foo from bar where baz = ? } ); $sth->execute($qux);
|
|---|