Jump to content
MakeWebGames

Recommended Posts

Posted

this is the sql for my streets

 

CREATE TABLE `streets` (

`id` int(11) NOT NULL auto_increment,

`min_level` int(11) NOT NULL,

`text` longtext NOT NULL,

`query` int(11) NOT NULL,

PRIMARY KEY (`id`)

) TYPE=MYISAM ;

INSERT INTO `settings` (`conf_id`, `conf_name`, `conf_value`) VALUES ('NULL', 'steps_daily', '100')

ALTER TABLE `users` ADD `steps` INT( 11 ) NOT NULL ;

 

and wen i run it i get this error

 

SQL query:

INSERT INTO `settings` ( `conf_id` , `conf_name` , `conf_value` )

VALUES (

'NULL', 'steps_daily', '100'

)

ALTER TABLE `users` ADD `steps` INT( 11 ) NOT NULL ;

MySQL said: Documentation

#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 'ALTER TABLE `users` ADD `steps` INT( 11 ) NOT NULL' at line 3

 

can any1 help ?

 

thanks

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...