Hello
I have a database that makes - unfortunately - a bit of mix of undef and empty values. In the following script, I would like to match with $Tag1 and $Tag2 being "" (empty) if the corresponding values in the database is empty "" OR undef. Is this possible?
my $sql = 'SELECT * FROM GlossaryMetadata WHERE Tag1 LIKE ? AND Tag2 L +IKE ?'; $sth = $dbh->prepare($sql); $sth->execute($Tag1, $Tag2);
In reply to DBI match both empty and undef by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |