Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.misc -> Re: Oracle not null error when using datatype int

Re: Oracle not null error when using datatype int

From: Niall Litchfield <n-litchfield_at_audit-commission.gov.uk>
Date: Mon, 25 Nov 2002 15:35:54 -0000
Message-ID: <3de2435a$0$1290$ed9e5944@reading.news.pipex.net>


One comment and one question
"Rich D" <rdalfonso_at_nyc.rr.com> wrote in message news:196cd325.0211250707.6ae827a9_at_posting.google.com...
> I get an error when I use a database column of datatype 'int' or
> 'number' that has constraint NOT NULL.
> Whenever I attempt an insert it says:
> ORA-01400: cannot insert NULL into
> ("SYSTEM"."TABLE_NAME"."NUMBER_OR_INT_FIELD")
You shouldn't really be using the SYSTEM account to create your objects.

>
> if I change the column 'NUMBER_OR_INT_FIELD' to have a datatype of
> 'char', it works fine.
>
> Any thoughts why this is?

What is your insert statement and what language/tool are you using?

--
Niall Litchfield
Oracle DBA
Audit Commission UK
*****************************************
Please include version and platform
and SQL where applicable
It makes life easier and increases the
likelihood of a good answer

******************************************
Received on Mon Nov 25 2002 - 09:35:54 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US