CREATE TABLE accounts (
product tinytext NOT NULL,
quantity tinytext NOT NULL,
Id int(4) DEFAULT ‘0’ NOT NULL auto_increment,
description tinytext NOT NULL,
price float(10,2) DEFAULT ‘0.00’ NOT NULL,
category char(1) DEFAULT ‘’ NOT NULL,
PRIMARY KEY (id),
KEY price (price)
);
I get an error back saying "Invalid default value for ‘Id’ ", and i dont know whats wrong. Please can somebody tell me what im doing wrong.
Thanks in Advance.