I use MYSQL 4. I can modify or alter a column with no problems. But how I
can alter table and setup Default value. The column below has default value
NULL, but I want to setup default value used. How that's can be done?
type | enum('new',used') | YES | | NULL
Mapsnac
Sent: Saturday, January 03, 2004 5:37 PM
Subject: Alter table and setup Default value
I use MYSQL 4. I can modify or alter a column with no problems. But
how I
can alter table and setup Default value. The column below has default
value
NULL, but I want to setup default value used. How
This worked for me:
ALTER TABLE `test` CHANGE `somefield` `somefield` enum('new','used') DEFAULT 'new'
--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]