creating table fails
-
Creating a table fails, even if I use Table Creator to generate the SQL as below:
CREATE TABLE
wp_kdfl_jh
(
ID
bigint(20) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT ‘ID’,
name
text NOT NULL,
current_amount
decimal(20,2) UNSIGNED NOT NULL DEFAULT ‘0.00’,
max_amount
decimal(20,2) UNSIGNED NOT NULL DEFAULT ‘0.00’,
avg
decimal(20,2) UNSIGNED NOT NULL DEFAULT ‘0.00’,
value
decimal(20,2) UNSIGNED NOT NULL DEFAULT ‘0.00’ COMMENT ‘percentage’,
created
datetime NOT NULL DEFAULT ‘0000-00-00 00:00:00’ COMMENT ‘Created Datetime’,
updated
timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT ‘Updated Datetime’,
PRIMARY KEY(ID
) ,
UNIQUE(name
) )
ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=1;
- The topic ‘creating table fails’ is closed to new replies.