dbTalk Databases Forums  

Simple DDL stuff, what's wrong?

comp.databases.mysql comp.databases.mysql


Discuss Simple DDL stuff, what's wrong? in the comp.databases.mysql forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
justaguy
 
Posts: n/a

Default Simple DDL stuff, what's wrong? - 11-25-2011 , 02:18 PM






Hi,

Some mySQL tool created the following script with its Preview,
however, it failed to execute without clear err msg as to how. Any
idea? Thanks.

alter table `myDB`.`myTBL`
change `future` `future` bit(1) NULL ,
change `active` `active` bit(1) default '1' NOT NULL;

Reply With Quote
  #2  
Old   
justaguy
 
Posts: n/a

Default Re: Simple DDL stuff, what's wrong? - 11-25-2011 , 05:36 PM






On Nov 25, 3:18*pm, justaguy <do... (AT) yahoo (DOT) com> wrote:
Quote:
Hi,

Some mySQL tool created the following script with its Preview,
however, it failed to execute without clear err msg as to how. *Any
idea? *Thanks.

alter table `myDB`.`myTBL`
* *change `future` `future` bit(1) NULL ,
* change `active` `active` bit(1) default '1' NOT NULL;
Never mind, silly me, the tool developer would probably have to do
some parsing for the non-standard sql code, I could do it from sql
command line...

Reply With Quote
  #3  
Old   
john
 
Posts: n/a

Default Re: Simple DDL stuff, what's wrong? - 11-29-2011 , 10:06 PM



On 11月26日, 上午4时18分, justaguy <do... (AT) yahoo (DOT) com> wrote:
Quote:
Hi,

Some mySQL tool created the following script with its Preview,
however, it failed to execute without clear err msg as to how. Any
idea? Thanks.

alter table `myDB`.`myTBL`
change `future` `future` bit(1) NULL ,
change `active` `active` bit(1) default '1' NOT NULL;
you should wrote like this
Quote:
change column `future` `future` bit(1) NULL,
change column `active` `active` bit(1) default '1' NOT NULL;

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.