Solved

Dropping not null constraint in db2 udb/WIn nt/unix

Posted on 2004-08-11
5
502 Views
Last Modified: 2008-03-17
I have a table d ( f float not null). Is there any way I can drop the not null constraint from the table.
Thanks in advance.
Mitra
0
Comment
Question by:amitra123
5 Comments
 
LVL 13

Accepted Solution

by:
ghp7000 earned 125 total points
ID: 11788959
if this column is part of the primary key, you can drop the primary key and re create a new one.
if this column is not part of the primary key but you want to make it nullable, export the data from the table, re create the table as required, re load the data.
0
 
LVL 50

Expert Comment

by:Lowfatspread
ID: 11796360
unfortunately the NULL/NOT NULL is a Column Option not a constraint from DB2/UDBs view on SQL

so you basicallt have to export and drop/recreate the table to change this...

 
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Recursive SQL in UDB/LUW (you can use 'recursive' and 'SQL' in the same sentence) A growing number of database queries lend themselves to recursive solutions.  It's not always easy to spot when recursion is called for, especially for people una…
Recursive SQL in UDB/LUW (it really isn't that hard to do) Recursive SQL is most often used to convert columns to rows or rows to columns.  A previous article described the process of converting rows to columns.  This article will build off of th…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

760 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

26 Experts available now in Live!

Get 1:1 Help Now