I am getting an error. This is the code
CREATE TABLE IF NOT EXISTS `server_info` (
`name` varchar(256) DEFAULT NULL DEFAULT '',
`value` int(11) DEFAULT NULL,
PRIMARY KEY (`name`),
KEY `name` (`name`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1;
The error I am receiving is this:
Error Static analysis:
1 errors were found during analysis.
This option conflicts with "
DEFAULT
". (near "DEFAULT
" at position 79) SQL query.
MySQL documentation:
#1171 - All parts of a
PRIMARY KEY
must beNOT NULL
; if you needNULL
in a key, useUNIQUE
instead
Anyone knows what to change in the code above?