CREATE TABLE statement errors
#2

You need to add backslash at the end of the line for a new line.
pawn Код:
mysql_query(db, "CREATE TABLE IF NOT EXISTS `Houses` ( \
        `hdbID` INT(20) AUTO_INCREMENT, \
        `hOwner` VARCHAR(25) NOT NULL, \
        `hPrice` INT(20) NOT NULL, \
        PRIMARY KEY(`hdbID`) \
        ) ENGINE = InnoDB DEFAULT CHARSET=latin1
    "
);
Reply


Messages In This Thread
CREATE TABLE statement errors - by Denis1 - 19.04.2015, 07:49
Re: CREATE TABLE statement errors - by J4Rr3x - 19.04.2015, 09:27
Re: CREATE TABLE statement errors - by Denis1 - 19.04.2015, 09:38

Forum Jump:


Users browsing this thread: 1 Guest(s)