Does anyone have any idea what is wrong with this create statement for mysql?
EDIT: now it states the error is near: revised VARCHAR(20), paypal_accept TINYINT, pre_terminat' at line 4
Thanks for the help everyone
Still errors after using sql beautifier though
CREATE TABLE AUCTIONS (
ARTICLE_NO VARCHAR(20),
ARTICLE_NAME VARCHAR(100),
SUBTITLE VARCHAR(20),
CURRENT_BID VARCHAR(20),
START_PRICE VARCHAR(20),
BID_COUNT VARCHAR(20),
QUANT_TOTAL VARCHAR(20),
QUANT_SOLD VARCHAR(20),
START DATETIME,
ENDS DATETIME,
ORIGIN_END DATETIME,
SELLER_ID VARCHAR(20),
BEST_BIDDER_ID VARCHAR(20),
FINISHED VARCHAR(20),
WATCH VARCHAR(20),
BUYITNOW_PRICE VARCHAR(20),
PIC_URL VARCHAR(20),
PRIVATE_AUCTION VARCHAR(20),
AUCTION_TYPE VARCHAR(20),
INSERT_DATE DATETIME,
UPDATE_DATE DATETIME,
CAT_1_ID VARCHAR(20),
CAT_2_ID VARCHAR(20),
ARTICLE_DESC VARCHAR(20),
DESC_TEXTONLY VARCHAR(20),
COUNTRYCODE VARCHAR(20),
LOCATION VARCHAR(20),
CONDITION VARCHAR(20),
REVISED VARCHAR(20),
PAYPAL_ACCEPT TINYINT,
PRE_TERMINATED VARCHAR(20),
SHIPPING_TO VARCHAR(20),
FEE_INSERTION VARCHAR(20),
FEE_FINAL VARCHAR(20),
FEE_LISTING VARCHAR(20),
PIC_XXL TINYINT,
PIC_DIASHOW TINYINT,
PIC_COUNT VARCHAR(20),
ITEM_SITE_ID VARCHAR(20),
PRIMARY KEY ( `ARTICLE_NO` ));
The error is now near 'CONDITION VARCHAR(20), REVISED VARCHAR(20), PAYPAL_ACCEPT TI' at line 29
I really can't see what is wrong, does TINYINT need a parameter?
Do MYSQL column names have to be capitals?