Jump to content

Archived

This topic is now archived and is closed to further replies.

aysx

set default

Recommended Posts

ummm.. how do you set a default value in a mysql table? i want to change the column brianna so it has a default value of six, but i\'m using

 

alter table clarence alter brianna set default six

 

which doesn\'t seem to work... can anyone tell me why?[/code]

Share this post


Link to post
Share on other sites
alter table clarence ALTER brianna  varchar(10) DEFAULT \'six\' NOT NULL,

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.