<DIV>Where are you located?<BR><BR><B><I>Jon Clemons &lt;clemdog@marshallnet.com&gt;</I></B> wrote:
<BLOCKQUOTE class=replbq style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">Come up here and I can fix that crazy want real quick:)<BR><BR>----- Original Message ----- <BR>From: "Dave J. Hala Jr." <DAVE@58GHZ.NET><BR>To: "Central Iowa Linux Users Group" <CIALUG@CIALUG.ORG><BR>Sent: Wednesday, September 21, 2005 9:51 AM<BR>Subject: Re: [Cialug] DB2<BR><BR><BR>&gt; Now that makes me want to switch from Mysql to DB2....<BR>&gt;<BR>&gt;<BR>&gt; On Wed, 2005-09-21 at 09:48, Tim Wilson wrote:<BR>&gt;&gt; It is true, it depends on the version of DB2. In our update scripts,<BR>&gt;&gt; any time we have to add or delete a column, we go through these steps:<BR>&gt;&gt; 1. ALTER TABLE table DROP CONSTRAINT constraint; (Do this for each <BR>&gt;&gt; constraint).<BR>&gt;&gt; 2. RENAME TABLE table TO oldtable;<BR>&gt;&gt; 3. CREATE TABLE table ...<BR>&gt;&gt; 4. INSERT INTO table ... SELECT ... FROM oldtable;<BR>&gt;&gt; 5. DROP TABLE oldtable;<BR>&gt;&gt;<BR>&gt;&gt; On
 9/21/05, David Stout <RAGBRAI65@YAHOO.COM>wrote:<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt; There is no Primary or Foreign Key on this column.<BR>&gt;&gt; &gt; I have the same privileges as admin<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt; Dave Weis <DJWEIS@INTERNETSOLVER.COM>wrote:<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt; Try<BR>&gt;&gt; &gt; ALTER TABLE payroll DROP company_id<BR>&gt;&gt; &gt; If it's a key as the name implies it might have constraints from other<BR>&gt;&gt; &gt; tables preventing it from being dropped at all.<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt; On Wed, 21 Sep 2005, David Stout wrote:<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt; &gt; I tryed this<BR>&gt;&gt; &gt; &gt;<BR>&gt;&gt; &gt; &gt; ALTER TABLE PAYROLL<BR>&gt;&gt; &gt; &gt; DROP COLUMN COMPANY_ID<BR>&gt;&gt; &gt; &gt;<BR>&gt;&gt; &gt; &gt; and got this<BR>&gt;&gt; &gt; &gt;<BR>&gt;&gt; &gt; &gt;<BR>&gt;&gt; &gt; &gt; Error: SQL0104N An unexpected token "COLUMN" was found following <BR>&gt;&gt; &gt; &gt; "TABLE<BR>&gt;&gt; &gt; PAYROLL DROP".
 Expected tokens may include: "CONSTRAINT". <BR>&gt;&gt; &gt; SQLSTATE=42601<BR>&gt;&gt; &gt; &gt;<BR>&gt;&gt; &gt; &gt; (State:42601, Native Code: FFFFFF98)<BR>&gt;&gt; &gt; &gt;<BR>&gt;&gt; &gt; &gt;<BR>&gt;&gt; &gt; &gt; "Nathan C. Smith" wrote:<BR>&gt;&gt; &gt; &gt; 'Alter table' in SQL?<BR>&gt;&gt; &gt; &gt;<BR>&gt;&gt; &gt; &gt; -----Original Message-----<BR>&gt;&gt; &gt; &gt; From: David Stout [mailto:ragbrai65@yahoo.com]<BR>&gt;&gt; &gt; &gt; Sent: Wednesday, September 21, 2005 8:59 AM<BR>&gt;&gt; &gt; &gt; To: cialug@cialug.org<BR>&gt;&gt; &gt; &gt; Subject: [Cialug] DB2<BR>&gt;&gt; &gt; &gt;<BR>&gt;&gt; &gt; &gt;<BR>&gt;&gt; &gt; ! &gt; I need a little help does anyone know If you can delete a column <BR>&gt;&gt; &gt; from a<BR>&gt;&gt; &gt; table in DB2. If so what is the syntax?<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; _______________________________________________<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;<BR>&gt;&gt; &gt; --<BR>&gt;&gt; &gt; Dave Weis<BR>&gt;&gt; &gt; djweis@internetsolver.com<BR>&gt;&gt; &gt; http://www.internetsolver.com/<BR>&gt;&gt; &gt;<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; &gt;<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt; David Stout<BR>&gt;&gt; &gt; BTS Billing Team<BR>&gt;&gt; &gt; Data Repository &amp; Reports<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt; ________________________________<BR>&gt;&gt; &gt; Yahoo! for Good<BR>&gt;&gt; &gt; Click here to donate to the Hurricane Katrina relief effort.<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt;<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; &gt;<BR>&gt;&gt; &gt;<BR>&gt;&gt; &gt;<BR>&gt;&gt;<BR>&gt;&gt;<BR>&gt;&gt; --<BR>&gt;&gt; Tim<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; -- <BR>&gt;<BR>&gt; Open Source Information Systems, Inc. (OSIS)<BR>&gt; Dave J. Hala Jr., President <DAVE@OSIS.US><BR>&gt; 641.485.1606<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><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.