How do I compare a VARCHAR2
variable, which is an empty value?
相关问题
- SQL join to get the cartesian product of 2 columns
- sql execution latency when assign to a variable
- Difference between Types.INTEGER and Types.NULL in
- What means in Dart static type and why it differs
- php PDO::FETCH_ASSOC doesnt detect select after ba
You could use either of these:
or
Your question does say "compare" a VARCHAR variable which is null so if you are comparing it to another variable then:
That would check if they are both null.
Hope it helps...
Oracle doesn't differentiate between empty strings and NULL. To check if a variable is an empty string, use the
IS NULL
syntax.