views:

381

answers:

1

Whats wrong with my query?

 ALTER TABLE test_posts ADD sticky boolean NOT NULL default = false 

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '=false' at line 2

+4  A: 

You need to remove the =:

ALTER TABLE test_posts ADD sticky boolean NOT NULL default false 
Phil Ross