![]() |
SQL Help
can someone please help me with this query.
i'm no sql guy and i'm getting syntax error: i need to add this: ALTER TABLE `".TABLE_PREFIX."post` ADD COLUMN `warn_flag` int(5) default 0 AFTER attach my prefix is this: i tried entering it like this: ALTER TABLE vb3_post ADD COLUMN `warn_flag` int(5) default 0 AFTER attach but i'm getting syntax error. please help. thanks in advanced. |
Try this:
Code:
ALTER TABLE `vb3_post` ADD COLUMN `warn_flag` int(5) default 0 AFTER attach |
Quote:
i got this when i copied and pasted your code. Error SQL-query : ALTER TABLE `vb3_post` ADD COLUMN `warn_flag` int( 5 ) default0 AFTER attach MySQL said: 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 'default0 AFTER attach' at line 1 |
There's a space missing between default and 0.
|
i have no clue as to why it's reading that there's no spaces between default and 0 because it's not all all.
i copied and pasted exactly what you have above. my sql knowledge is noobish so i wouldn't know how to manually add it. can i add it like this: Code:
ALTER TABLE `vb3_post` ADD COLUMN `warn_flag` int(5) AFTER attach |
i figured it out.
i got the old retarded version of MySQL 4.0.22 this worked: Code:
ALTER TABLE `vb3_post` ADD COLUMN `warn_flag` int(5) default '0' AFTER attach; |
more enough i thank you greatly!
|
All times are GMT. The time now is 07:34 AM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|