Skip to Main Content

SQL & PL/SQL

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!

varchar2, empty strings and NULL

296590Jun 22 2002
Hi all,

When inserting an empty string into a column of type varchar2 - is a NULL value stored in the column by the database? I've seen conflicting reports, and I know that the SQL 1992 spec specifies that empty strings not be treated as a NULL value, but that Oracle has traditionally treated zero length strings stored in a varchar2 column as NULL.

So, is there a way to store an empty string in a varchar2 column as an empty string and not a NULL value?

TIA,
Seth
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jul 22 2002
Added on Jun 22 2002
10 comments
1,361 views