Are you shure you don't really want ENUM('y','n')
SET('y','n') will allow the field to be both 'y' and 'n' at the same time.
Chris Knipe wrote:
>I'm talking under correction here, but
>
>SET('y'.'n') default 'n' NOT NULL - should work. I normally just do all
>this stuff via phpmyadmin, it works really great...
>
>--
>me
>
>
>----- Original Message -----
>From: "Jason Soza" <solja@stripped>
>To: "MySQL Mailing List" <mysql@stripped>
>Sent: Friday, June 07, 2002 5:06 AM
>Subject: Stupid Q
>
>
>>Hoping someone can help me here:
>>
>>I've made a column using SET("y","n") NOT NULL - I want the default value
>>
>in
>
>>that column to be "n", so if no data is entered for that column, it'd be
>>
>"n"
>
>>automatically.
>>
>>How do I do that? Not sure what to search for in the manual.
>>
>>Jason Soza
>>
>>filter fodder: sql, query
>>