How do you guys handle blank lines with Oracle?
Statement # 1 : Oracle treats an empty string (for example, '') as NULL in the "varchar2" fields.
Statement # 2 : We have a model that defines an abstract "table structure", where for fields there may not be NULL, but may be "empty". This model works with various DBMS; almost everywhere, everything is just fine, but not with Oracle. You simply cannot insert an empty string into the non-null field.
Statement # 3 : a non-empty default value in our case is not valid.
So, will anyone be so kind as to tell me - how can we solve it?
oracle orm varchar2
Vugluskr
source share