- or download this
$sth = $dbh->prepare(qq{
INSERT INTO people (fullname, age) VALUES (?, ?)
});
$sth->execute("Joe Bloggs", undef);
- or download this
WHERE ISNULL(age, xx) = ISNULL(?, xx)
- or download this
$where_clause = defined $age? "age = ?" : "age IS NULL";