There's more than one way to do things | |
PerlMonks |
Re: DBI match both empty and undefby pme (Monsignor) |
on Jan 27, 2019 at 15:21 UTC ( [id://1229026]=note: print w/replies, xml ) | Need Help?? |
Hi,
What kind of database you have? For example in Oracle database the empty string becomes null automagically. This is how to select rows where both Tag1 and Tag2 is null. null value in the database is seen as undef in perl. I suppose you use DBI module.
In Section
Seekers of Perl Wisdom
|
|