View Single Post
Old 02-23-2006, 08:49 AM   #1 (permalink)
l33t_1-1axx0r
Huzzah!
 
l33t_1-1axx0r's Avatar
 
Join Date: Feb 2006
Posts: 8
l33t_1-1axx0r is on a distinguished road
Send a message via AIM to l33t_1-1axx0r Send a message via MSN to l33t_1-1axx0r Send a message via Yahoo to l33t_1-1axx0r
I'm being yelled at

alter table 'user' add column 'shouts' integer NOT NULL default = '0'


Using MySQL 5.0.

#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 ''user' add column 'shouts' integer NOT NULL default = '0'' at l


Pretty detailed, huh? Can you not alter table and populate with default value at the same time?
l33t_1-1axx0r is offline   Reply With Quote