You need to quote the default value.

--zak


----- Original Message -----
From: "Abraham Ingersoll" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, May 15, 2001 12:39 PM
Subject: alter table change enum set


>
> Can anyone shed light on why this doesn't work, and perhaps tell me how I
> can ALTER the enum values .. or is this just not possible?
>
> mysql> ALTER TABLE nt_zone_record_log CHANGE COLUMN action action
>        ENUM('added','modified','deleted') NOT NULL DEFAULT added;
>
> ERROR 1064: You have an error in your SQL syntax near 'added' at line 1
>
> Thanks,
> Abe
>
>
>
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
>
> To request this thread, e-mail <[EMAIL PROTECTED]>
> To unsubscribe, e-mail <[EMAIL PROTECTED]>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to