mysql syntax error for timestamp

Posted by eyecreate on Stack Overflow See other posts from Stack Overflow or by eyecreate
Published on 2010-05-02T20:44:54Z Indexed on 2010/05/02 20:58 UTC
Read the original article Hit count: 189

Filed under:
|

I have this piece of SQL that is being fed to Mysql.

CREATE TABLE pn_history(
 member INT,
 action INT,
 with INT,
 timestamp DATETIME,
 details VARCHAR(256)
)

But is comes back as an error about the syntax.

#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 'with INT,
timestamp DATETIME,
details VARCHAR(256)
)' at line 4 

Why is this failing?

© Stack Overflow or respective owner

Related posts about mysql

Related posts about sql