<DIV>No in this case I created this table as a test and added the column my self. With no RF<BR><BR><B><I>David Champion &lt;dave@visionary.com&gt;</I></B> wrote:
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">I think Jon was joking.<BR><BR>We might need to start putting <HUMOR></HUMOR>tags around stuff today. :p<BR><BR>Back to your original topic: Are you sure that by dropping your ID <BR>column that you're not going to cause a problem with a relationship / <BR>constraint / trigger? Relational Databases can be tricky if you don't <BR>know what you're doing... you could cause a lot of trouble.<BR><BR>-dc<BR><BR>David Stout wrote:<BR>&gt; Where are you located?<BR>&gt; <BR>&gt; Jon Clemons <CLEMDOG@MARSHALLNET.COM>wrote:Come up here and I can fix that crazy want real quick:)<BR>&gt; <BR>&gt; ----- Original Message ----- <BR>&gt; From: "Dave J. Hala Jr." <BR>&gt; To: "Central Iowa Linux Users Group" <BR>&gt; Sent: Wednesday, September 21, 2005 9:51 AM<BR>&gt; Subject: Re: [Cialug] DB2<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt;&gt;Now that makes me want to switch from Mysql to
 DB2....<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt;On Wed, 2005-09-21 at 09:48, Tim Wilson wrote:<BR>&gt;&gt;<BR>&gt;&gt;&gt;It is true, it depends on the version of DB2. In our update scripts,<BR>&gt;&gt;&gt;any time we have to add or delete a column, we go through these steps:<BR>&gt;&gt;&gt;1. ALTER TABLE table DROP CONSTRAINT constraint; (Do this for each <BR>&gt;&gt;&gt;constraint).<BR>&gt;&gt;&gt;2. RENAME TABLE table TO oldtable;<BR>&gt;&gt;&gt;3. CREATE TABLE table ...<BR>&gt;&gt;&gt;4. INSERT INTO table ... SELECT ... FROM oldtable;<BR>&gt;&gt;&gt;5. DROP TABLE oldtable;<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt;On 9/21/05, David Stout wrote:<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;There is no Primary or Foreign Key on this column.<BR>&gt;&gt;&gt;&gt;I have the same privileges as admin<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;Dave Weis wrote:<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;Try<BR>&gt;&gt;&gt;&gt;ALTER TABLE payroll DROP company_id<BR>&gt;&gt;&gt;&gt;If it's a key as the name implies it might
 have constraints from other<BR>&gt;&gt;&gt;&gt;tables preventing it from being dropped at all.<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;On Wed, 21 Sep 2005, David Stout wrote:<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt;I tryed this<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt;ALTER TABLE PAYROLL<BR>&gt;&gt;&gt;&gt;&gt;DROP COLUMN COMPANY_ID<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt;and got this<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt;Error: SQL0104N An unexpected token "COLUMN" was found following <BR>&gt;&gt;&gt;&gt;&gt;"TABLE<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;PAYROLL DROP". Expected tokens may include: "CONSTRAINT". <BR>&gt;&gt;&gt;&gt;SQLSTATE=42601<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt;(State:42601, Native Code: FFFFFF98)<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt;"Nathan C. Smith" wrote:<BR>&gt;&gt;&gt;&gt;&gt;'Alter table' in
 SQL?<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt;-----Original Message-----<BR>&gt;&gt;&gt;&gt;&gt;From: David Stout [mailto:ragbrai65@yahoo.com]<BR>&gt;&gt;&gt;&gt;&gt;Sent: Wednesday, September 21, 2005 8:59 AM<BR>&gt;&gt;&gt;&gt;&gt;To: cialug@cialug.org<BR>&gt;&gt;&gt;&gt;&gt;Subject: [Cialug] DB2<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;! &gt; I need a little help does anyone know If you can delete a column <BR>&gt;&gt;&gt;&gt;from a<BR>&gt;&gt;&gt;&gt;table in DB2. If so what is the syntax?<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt;David Stout<BR>&gt;&gt;&gt;&gt;&gt;BTS Billing Team<BR>&gt;&gt;&gt;&gt;&gt;Data Repository &amp; Reports<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt;---------------------------------<BR>&gt;&gt;&gt;&gt;&gt;Yahoo! for Good<BR>&gt;&gt;&gt;&gt;&gt;Click here to donate to the Hurricane Katrina relief
 effort.<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;_______________________________________________<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt;Cialug mailing list<BR>&gt;&gt;&gt;&gt;&gt;Cialug@cialug.org<BR>&gt;&gt;&gt;&gt;&gt;http://cialug.org/mailman/listinfo/cialug<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt;David Stout<BR>&gt;&gt;&gt;&gt;&gt;BTS Billing Team<BR>&gt;&gt;&gt;&gt;&gt;Data Repository &amp; Reports<BR>&gt;&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;&gt;---------------------------------<BR>&gt;&gt;&gt;&gt;&gt;Yahoo! for Good<BR>&gt;&gt;&gt;&gt;&gt;Click here to donate to the Hurricane Katrina relief effort.<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;--<BR>&gt;&gt;&gt;&gt;Dave Weis<BR>&gt;&gt;&gt;&gt;djweis@internetsolver.com<BR>&gt;&gt;&gt;&gt;http://www.internetsolver.com/<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;_______________________________________________<BR>&gt;&gt;&gt;&gt;Cialug mailing
 list<BR>&gt;&gt;&gt;&gt;Cialug@cialug.org<BR>&gt;&gt;&gt;&gt;http://cialug.org/mailman/listinfo/cialug<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;David Stout<BR>&gt;&gt;&gt;&gt;BTS Billing Team<BR>&gt;&gt;&gt;&gt;Data Repository &amp; Reports<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;________________________________<BR>&gt;&gt;&gt;&gt;Yahoo! for Good<BR>&gt;&gt;&gt;&gt;Click here to donate to the Hurricane Katrina relief effort.<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;_______________________________________________<BR>&gt;&gt;&gt;&gt;Cialug mailing list<BR>&gt;&gt;&gt;&gt;Cialug@cialug.org<BR>&gt;&gt;&gt;&gt;http://cialug.org/mailman/listinfo/cialug<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;&gt;<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt;<BR>&gt;&gt;&gt;--<BR>&gt;&gt;&gt;Tim<BR>&gt;&gt;&gt;_______________________________________________<BR>&gt;&gt;&gt;Cialug mailing
 list<BR>&gt;&gt;&gt;Cialug@cialug.org<BR>&gt;&gt;&gt;http://cialug.org/mailman/listinfo/cialug<BR>&gt;&gt;<BR>&gt;&gt;-- <BR>&gt;&gt;<BR>&gt;&gt;Open Source Information Systems, Inc. (OSIS)<BR>&gt;&gt;Dave J. Hala Jr., President <BR>&gt;&gt;641.485.1606<BR>&gt;&gt;<BR>&gt;&gt;_______________________________________________<BR>&gt;&gt;Cialug mailing list<BR>&gt;&gt;Cialug@cialug.org<BR>&gt;&gt;http://cialug.org/mailman/listinfo/cialug<BR>&gt;&gt;<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; Cialug mailing list<BR>&gt; Cialug@cialug.org<BR>&gt; http://cialug.org/mailman/listinfo/cialug<BR>&gt; <BR>&gt; <BR>&gt; <BR>&gt; David Stout<BR>&gt; BTS Billing Team<BR>&gt; Data Repository &amp; Reports<BR>&gt; <BR>&gt; ---------------------------------<BR>&gt; Yahoo! for Good<BR>&gt; Click here to donate to the Hurricane Katrina relief effort. <BR>&gt; <BR>&gt; <BR>&gt;
 ------------------------------------------------------------------------<BR>&gt; <BR>&gt; _______________________________________________<BR>&gt; Cialug mailing list<BR>&gt; Cialug@cialug.org<BR>&gt; http://cialug.org/mailman/listinfo/cialug<BR><BR><BR>_______________________________________________<BR>Cialug mailing list<BR>Cialug@cialug.org<BR>http://cialug.org/mailman/listinfo/cialug<BR></BLOCKQUOTE></DIV><BR><BR>David Stout<br>BTS Billing Team<br>Data Repository &amp; Reports<p>
                <hr size=1>Yahoo! for Good<br> 
<a href="http://store.yahoo.com/redcross-donate3/">Click here to donate</a> to the Hurricane Katrina relief effort.