Little help Incorrect syntax near
#1

I need a help with this problem. I'm trying to fix it but I couldn't find the exact lines.
Example of the incorrect syntax
Код:
Msg 156, Level 15, State 1, Line 14
Incorrect syntax near the keyword 'IF'.
Msg 102, Level 15, State 1, Line 14
Incorrect syntax near '`'.
This is the line 14
Код:
CREATE TABLE IF NOT EXISTS `accounts` (
  `Key` int(11) NOT NULL AUTO_INCREMENT,
Full Error link http://pastebin.com/hKdwt51e
SQL Script Link: http://pastebin.com/3w58vMbf
Reply
#2

any idea guys?
Reply
#3

I think so.... but wait.
Reply
#4

PHP код:
    querystr1 "CREATE TABLE IF NOT EXISTS `Account`(`ID`int AUTO_INCREMENT PRIMARY KEY, `Name` varchar(24) NOT NULL, `Password` varchar(129) NOT NULL, `Email` varchar(129) NOT NULL, `Admin` int(11) NOT NULL, `Sex` int(11) NOT NULL, `Age` int(11) NOT NULL, `Level` int(11) NOT NULL, `Money` int(11) NOT NULL, `Skin` int(11) NOT NULL, `pJob` int(11) NOT NULL,";
    
querystr2 "`pCar` int(11) NOT NULL,`pSaxlid` int(11) NOT NULL,`pInterieri` int(11) NOT NULL,`pBankfuli` int(11) NOT NULL,`pBorbali` int(11) NOT NULL,`pSpoileri` int(11) NOT NULL,`pBamperi2` int(11) NOT NULL,`pPaintjobi` int(11) NOT NULL,`pHydrawlic` int(11) NOT NULL,`pSatiety` int(11) NOT NULL,`pWyurvili` int(11) NOT NULL, `pRank` int(11) NOT NULL, `pMember` int(11) NOT NULL, `pLeader` int(11) NOT NULL)"
Try Making Your Script Like This dude.
Reply
#5

Remove these comments from top and then try to import.
Код:
-- --------------------------------------------------------
-- Host:                         127.0.0.1
-- Server version:               10.0.20-MariaDB - mariadb.org binary distribution
-- Server OS:                    Win32
-- HeidiSQL Version:             9.1.0.4867
-- --------------------------------------------------------
 
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET NAMES utf */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)