Perl | my $a = undef; if (defined($a)) { ... } | |
---|---|---|
Javascript | var a; if (typeof(a) == "undefined") { ... } undefined = "Variable shouldn't be assignable, but before ECMA5, it was"; | var a = null; if (a === null && a !== null) { ... } |
SQL | SELECT * FROM TableName WHERE colname IS NOT NULL; |