Skip to Main Content

Oracle Database Discussions

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

insert blank or white space but not null

407048May 3 2004 — edited May 3 2004
By necessity (part of a aggregate PK) we have a column in the database that is defined as NOT NULL. We just found out that it is desirable to allow the insertion of empty strings in that column. In Java the empty string is treated differently than a null. But Oracle appears to treat the empty string and NULL synonymously. Thus we get Oracle errors like ORA-01400: cannot insert NULL into ....

Does Oracle have a way or an Oracle function to make Oracle accept an empty string - short of changing the attributes for that column or inserting white space ??
Any ideas ?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 31 2004
Added on May 3 2004
3 comments
2,493 views