Re: Modify type

2004-10-19 Thread Egor Egorov
Jerry Swanson [EMAIL PROTECTED] wrote: I have field date type of datetime. I need to modify to timestamp. If I alter the table and mofiy the field will this crash the data in the field. MySQL server will crash? Please show us the error message. -- For technical support contracts, goto

Modify type

2004-10-14 Thread Jerry Swanson
I have field date type of datetime. I need to modify to timestamp. If I alter the table and mofiy the field will this crash the data in the field. TH -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

RE: Using ALTER to modify type of a Primary Key; URGENT

2001-10-26 Thread Don Read
On 26-Oct-2001 Tim Evans wrote: I have inherited a database built by someone else who was apparently very stingy. :-) A primary key was set to 'tinyint(4)' limiting the number of records to 128. I've tried: alter table my_data modify phyid mediumint unsigned DEFAULT 0; ...but

Re: Using ALTER to modify type of a Primary Key; URGENT

2001-10-26 Thread Aleksandar Bradaric
Hi, A primary key was set to 'tinyint(4)' limiting the number of records to 128. I've tried: alter table my_data modify phyid mediumint unsigned DEFAULT 0; ERROR 1121: Column 'phyid' is used with UNIQUE or INDEX but is not defined as NOT NULL Try: alter table my_data modify phyid

Using ALTER to modify type of a Primary Key; URGENT

2001-10-25 Thread Tim Evans
I have inherited a database built by someone else who was apparently very stingy. :-) A primary key was set to 'tinyint(4)' limiting the number of records to 128. I've tried: alter table my_data modify phyid mediumint unsigned DEFAULT 0; ...but got: ERROR 1121: Column 'phyid' is used with