Home » SQL & PL/SQL » SQL & PL/SQL » Insert Blank to a not null column
Insert Blank to a not null column [message #218389] Thu, 08 February 2007 00:33 Go to next message
Messages: 91
Registered: February 2007
Location: NJ, US
Hi All

Iam trying to insert Blank to a not null column in a table.

create table test(a number not null,
b number)

****Something like this***********
---insert into test values(Blank,5);

What I should replace Blank with.

Re: Insert Blank to a not null column [message #218393 is a reply to message #218389] Thu, 08 February 2007 00:43 Go to previous message
Messages: 3727
Registered: October 2005
Location: Melbourne, Australia
Senior Member
A number - if not null - must be, ... well.... numeric Confused Any number will do. How about 0?

If you want to store the abscence of a value, make the column NULLable.

Ross Leishman
Previous Topic: format number column for display ..
Next Topic: PLSQL Packages
Goto Forum:

Current Time: Wed Aug 23 12:47:53 CDT 2017

Total time taken to generate the page: 0.08338 seconds