Jump to content

Table won't add more than 127 rows!!!!!


lunac

Recommended Posts

Please help. I designed a directory manager for a client. It was working absolutely perfectly with test data. Now that we're ready to go to production, I tried to add their actual data. BUT... for some reason it won't add more than 127 rows to the table. I need at least 300.

It gives me error: [color=red]#1062 - Duplicate entry '127' for key 1[/color]

What am I doing wrong?

Here's the table schema:

[code]
CREATE TABLE `directory` (
  `directory_id` tinyint(8) NOT NULL auto_increment,
  `area` varchar(255) NOT NULL default '',
  `lname` varchar(255) NOT NULL default '',
  `fname` varchar(255) NOT NULL default '',
  `lname2` varchar(255) NOT NULL default '',
  `fname2` varchar(255) NOT NULL default '',
  `traffic` enum('yes','no') NOT NULL default 'no',
  `house_num` int(255) NOT NULL default '0',
  `street_name` varchar(255) NOT NULL default '',
  `phone` varchar(255) NOT NULL default '',
  `email` varchar(255) NOT NULL default '',
  `notes` mediumtext NOT NULL,
  `new_neighbor` enum('yes','no') NOT NULL default 'no',
  `shca_board` enum('yes','no') NOT NULL default 'no',
  `shca_volunteer` enum('yes','no') NOT NULL default 'no',
  `vacant` enum('yes','no') NOT NULL default 'no',
  PRIMARY KEY  (`directory_id`)
) TYPE=MyISAM
[/code]
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.