Hello all,
Suppose I have this table

SQL> DESC FRUIT
 Name                                      Null?    Type
 ----------------------------------------- -------- 
 ORANGE                                    NOT NULL VARCHAR2(10)
 APPLE                                     NOT NULL VARCHAR2(10)

If I do this insert:

SQL> /
INSERT INTO FRUIT VALUES ('hello', '')
*
ERROR at line 1:
ORA-01400: cannot insert NULL into ("LIGHTCONE"."FRUIT"."APPLE")

I got an error cannot insert NULL. But, what if I meant is to insert empty 
string '' ? Certainly empty string is NOT equal to NULL values.

So how do I get around this?

Thanks in advance for any help.


Reuben D. Budiardja
-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.net
-- 
Author: Reuben D. Budiardja
  INET: [EMAIL PROTECTED]

Fat City Network Services    -- 858-538-5051 http://www.fatcity.com
San Diego, California        -- Mailing list and web hosting services
---------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: [EMAIL PROTECTED] (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Reply via email to