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: Make a field have Default Values? (Table Creation)

Re: Make a field have Default Values? (Table Creation)

From: Patrick Suppes <psuppes_at_lucent.com>
Date: Thu, 22 Apr 1999 13:50:33 -0600
Message-ID: <371F7D89.6E19AC41@lucent.com>


VERY CLOSE! Try

 create table test (
 id number not null ,
 parts number(14,2) default 0.00
 )

Patrick Suppes

Brian Lavender wrote:

> I am trying to create a table that has a default value in the event the user
> does not enter a value. I tried this statement for creating the table, but it
> does not work:
>
> create table test (
> id number not null ,
> parts number(14,2) default = 0.00
> )
>
> How do I make it so parts gets a value of 0.00 if the user does not insert a
> value?
>
> brian
> --
> Brian E. Lavender
> US Army Corps of Engineers -- Programmer / Systems Analyst
> Sacramento, CA (916) 557-6623
>
> -----------== Posted via Deja News, The Discussion Network ==----------
> http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own
Received on Thu Apr 22 1999 - 14:50:33 CDT

Original text of this message

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