Should be more like this shouldnt it?

ALTER TABLE test
ADD COLUMN testNum BYTE NOT NULL WITH DEFAULT 5



You need the WITH clause.....








There are two major products that come out of Berkeley: LSD and [Unix] 
BSD. We don't believe this to be a coincidence.



Doug Brown
----- Original Message ----- 
From: "Gyrus" <[EMAIL PROTECTED]>
To: "CF-Talk" <[EMAIL PROTECTED]>
Sent: Wednesday, January 09, 2002 5:28 PM
Subject: ALTER TABLE syntax


> Any idea what's wrong with this SQL?
> 
> ALTER TABLE test
>     ADD COLUMN testNum BYTE NOT NULL DEFAULT 5
> 
> This is using Access 2000. It seems to be the DEFAULT
> that's causing problems (works OK with just NOT NULL,
> or without constraints altogether).
> 
> Even statements copy-pasted from the MS Jet SQL
> reference docs seem to not work with DEFAULT. Any
> common pitfalls with this clause?
> 
> thanks,
> 
> - Gyrus
> 
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> - [EMAIL PROTECTED]
> work: http://www.tengai.co.uk
> play: http://www.norlonto.net
> - PGP key available
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
______________________________________________________________________
Get Your Own Dedicated Windows 2000 Server
  PIII 800 / 256 MB RAM / 40 GB HD / 20 GB MO/XFER
  Instant Activation � $99/Month � Free Setup
  http://www.pennyhost.com/redirect.cfm?adcode=coldfusionb
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to