note marto <p>Debugging tips:</p> <ul> <li>Run your SQL against
the database, removing Perl (or whatever) from the equation. If
the result isn't what you want, your SQL is most likely wrong,
less likely is that there's a bug in the database product(s) you
use.</li> <li>If the SQL works as expected then examine how you
manipulate the results afterwards. Basic print statements,
before and after manipulation will help.</li> <li>[id://519394]
from [tutorials]</li> </ul> <p>Also, consider using [mod://DBI]
to interact with databases.</p> 1003790 1003790