Home » SQL & PL/SQL » SQL & PL/SQL » What must be inserted into a NUMBER data type?
What must be inserted into a NUMBER data type? [message #41181] Thu, 05 December 2002 12:38 Go to next message
Das
Messages: 92
Registered: November 2002
Member
Hello all,
I have a table into which I am inserting some records from a file. in the table i have a field of type NUMBER and sometimes this value is blank, so my insert statement looks like this:
insert into ..(myname, mynumber, id)
values('das', , 'a330');
however when the number value is null, I am getting an error: ORA-00936: missing expression

How do we handle this? for example a null character can be replaced with ' '. can i just use NULL ?

I know this is a dumb question, please enlighten me.
thanks
Das
Re: What must be inserted into a NUMBER data type? [message #41182 is a reply to message #41181] Thu, 05 December 2002 13:21 Go to previous message
Todd Barry
Messages: 4819
Registered: August 2001
Senior Member
You could use either NULL or '' in the expression list.
Previous Topic: Todd Barry for Heisman
Next Topic: insert records from a table into another table ?
Goto Forum:
  


Current Time: Wed May 15 08:16:46 CDT 2024