It tell me sql error i try another table it can create only this table it have problen
CREATE TABLE presell
(
id
int(11) NOT NULL AUTO_INCREMENT,
refid
int(150) NOT NULL,
productcode
varchar(100) NOT NULL,
productname
varchar(200) DEFAULT NULL,
qutiy
int(11) NOT NULL,
price
decimal(11,2) NOT NULL,
stockcut
enum(‘n’,‘y’) NOT NULL DEFAULT ‘n’,
datecreate
datetime DEFAULT NULL,
timestamp
timestamp NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
order
enum(‘y’,‘n’) NOT NULL DEFAULT ‘n’,
PRIMARY KEY (id
),
UNIQUE KEY myIndex
(refid
,productcode
) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=4139 DEFAULT CHARSET=utf8;