in reply to DBI match both empty and undef
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.
SELECT * FROM GlossaryMetadata WHERE Tag1 is null AND Tag2 is null;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: DBI match both empty and undef
by Anonymous Monk on Jan 27, 2019 at 16:05 UTC | |
by pme (Monsignor) on Jan 27, 2019 at 16:15 UTC |