Click here to Skip to main content
15,922,650 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hey, can you please correct this for me? please..
This is the code
PHP
CREATE TABLE IF NOT EXISTS server` (
  `id` int(10) unsigned NOT NULL,
  `region_id` int(10) unsigned NOT NULL,
  `players` int(10) unsigned NOT NULL DEFAULT '0',
  `realms` int(10) unsigned NOT NULL DEFAULT '0',
  `online` tinyint(1) unsigned NOT NULL DEFAULT '0',
  `host` varchar(255) COLLATE utf8_unicode_ci DEFAULT NULL
) ENGINE=MyISAM AUTO_INCREMENT=37 DEFAULT CHARSET=utf8 COLLATE=utf8_unicode_ci;


This is the error I keep getting:
Msg 102, Level 15, State 1, Line 10
Incorrect syntax near '='.
Msg 102, Level 15, State 1, Line 29
Incorrect syntax near '`'.
Msg 102, Level 15, State 1, Line 48
Incorrect syntax near 'server'.

Anyone? Please!
Posted

Try to change the first line from
SQL
CREATE TABLE IF NOT EXISTS server` (

to
SQL
CREATE TABLE IF NOT EXISTS `server` (


You have a missing ` before server.
 
Share this answer
 
v2
I am missing quote of sorts in "EXISTS server`"
 
Share this answer
 
Same problem... what do I do... :(
 
Share this answer
 
Comments
George Jonsson 10-Oct-15 20:12pm    
Don't post a comment as an answer. It will not give any responses.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900