Welcome Guest, Not a member yet? Register   Sign In
Active Record ,Insert Auto Increment Problem?
#4

[eluser]mddd[/eluser]
You have defined your table in such a way that no two records can have the same id, name, fax, phone, website or zipcode.
Now you are trying to insert something with the same zip code as an existing record.

Change your table definition (indexes!) to remove this 'unique key' requirement on fields like zipcode (and I would say also on phone, fax
as they might be shared by multiple companies? This depends on your business I guess).


Messages In This Thread
Active Record ,Insert Auto Increment Problem? - by El Forum - 04-27-2010, 01:52 AM
Active Record ,Insert Auto Increment Problem? - by El Forum - 04-27-2010, 01:54 AM
Active Record ,Insert Auto Increment Problem? - by El Forum - 04-27-2010, 01:55 AM
Active Record ,Insert Auto Increment Problem? - by El Forum - 04-27-2010, 01:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB