sql - MySQL: Duplicate Entry for Key 2 -


I'm not sure what I'm doing to create this error. Type: (type, language, title) value ('bout', 'n', 'title3')

error in query:

  :  
  # 1062 - Duplicate entry '0' for key 2  

Table:

  create table ` Node` (`nid` et (10) unsigned null auto_interm,` vid` et (10) unsigned null default '0', `type 'varchar (32) tap default' ',` language` varchar (12) not Tap default '', 'title' varchar (255) tap default '', 'uid int (11) Default '0', 'status' int (11) tap default '1', 'made' 11 ', not default' 0 ',' promote 'INT (11) default not by zero (11) No' Default '0', 'Medium' integer (11) No zero default '0', 'sticky' integer (11) No zero default '0', `tnid` int (10) unsigned zero default '0', ' The translation 'int (11) tap default' 0 ', primary key (`nud`), unique key' vid '(` wd`), key' node_keyf` (`converting '), key` n Key `node_modrate` (` medium '), key `node_promot_states` (` promote', `condition`), key_node_stats_type (` condition`, `type`,` nex`) ), Key `node_tit_type` (` title`, 'type' (4)), key 'node_ type' (`type '(4)), key' uid` (` uid`), key 'tnid` (`tnid`) ), Key 'translate` (`translate')) engine = mice default charge = uTf 8 auotromety = 2586;  

What am I doing wrong? Without specifying an NID for the new entry, this auto-pay increase would be correct?

You have vid as a unique key however you have no Do not set the value, so the default 0 is always used. The second entry in the table will violate specificity.


Comments

Popular posts from this blog

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -