user5249110
user5249110

Reputation:

Where is the error in my query?

I wish I could give you more information from my investigation into the error, but the most descriptive info I get is "You have an error in your SQL syntax".

CREATE TABLE jobs (
    id MEDIUMINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
    title VARCHAR (200), 
    descshort VARCHAR (400), 
    descr VARCHAR (7000), 
    postdate TIMESTAMP DEFAULT CURRENT_TIMESTAMP;

Upvotes: 1

Views: 80

Answers (2)

Didier Aupest
Didier Aupest

Reputation: 3367

I guess you have an error in your SQL Syntax. You forgot the closing ")"

CREATE TABLE jobs (
    id MEDIUMINT NOT NULL AUTO_INCREMENT PRIMARY KEY,
    title VARCHAR (200), 
    descshort VARCHAR (400), 
    descr VARCHAR (7000), 
    postdate TIMESTAMP DEFAULT CURRENT_TIMESTAMP);

Upvotes: 6

Dan Bracuk
Dan Bracuk

Reputation: 20794

You are missing a closing bracket.

Upvotes: 3

Related Questions