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

Home -> Community -> Mailing Lists -> Oracle-L -> RE: how to get rid of default

RE: how to get rid of default

From: Tim Fleury <Tim_Fleury_at_perlegen.com>
Date: Thu, 30 Oct 2003 10:19:40 -0800
Message-ID: <F001.005D5182.20031030101940@fatcity.com>


I believe your only option with the alter table command is to set it to null (which it can't be on an insert that doesn't provide a value since the column is set up as not null).

ALTER TABLE table_name
  MODIFY (column_name DEFAULT NULL);

-----Original Message-----
Sent: Thursday, October 30, 2003 9:50 AM To: Multiple recipients of list ORACLE-L

Hi.

I have created a field in a table with a default clause. - f1 number(1) not null default 1. How can I get rid of the default now?

thanks

Gene



Do you Yahoo!?
Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/
--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Olga Gurevich
  INET: gurelei_at_yahoo.com
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: ListGuru_at_fatcity.com (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).
--

Please see the official ORACLE-L FAQ: http://www.orafaq.net
--

Author: Tim Fleury
  INET: Tim_Fleury_at_perlegen.com
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: ListGuru_at_fatcity.com (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). Received on Thu Oct 30 2003 - 12:19:40 CST

Original text of this message

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