Re: Add enum value to existing table?
Posted by: Peter Brawley
Date: June 25, 2014 10:32AM

drop table if exists t;
create table t(id int primary key, state enum('one','two') );
insert into t values(1,'one'),(2,'two');
alter table t modify state enum('one','two','three');
insert into t values(3,'three');

Options: ReplyQuote


Subject
Written By
Posted
Re: Add enum value to existing table?
June 25, 2014 10:32AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.