Please start any new threads on our new site at http://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

Our new SQL Server Forums are live! Come on over! We've restricted the ability to create new threads on these forums.

SQL Server Forums
Profile | Active Topics | Members | Search | Forum FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 Database Design and Application Architecture
 Can't merge tables
 Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

FerK
Starting Member

Switzerland
3 Posts

Posted - 02/26/2015 :  08:47:26  Show Profile  Reply with Quote
Folks, I am moving an old home-made user forum to phpBB. I have adapted my old users table to match the phpBB table, so that I can import all my old users. Unfortunately every time I try, I get the same error:

#1062 - Duplicate entry '3' for key 'PRIMARY'

My primary is the user ID, which I know for certain that is not duplicate. What am I doing wrong? You can see the tables here:

- old table: https://drive.google.com/file/d/0B3QQoClZR85TMEZJS0FYRnBVTmM/view?usp=sharing
- new table: https://drive.google.com/file/d/0B3QQoClZR85TS3RBSlljYXNDdjQ/view?usp=sharing

Thank you for any help or ideas.

FerK
Starting Member

Switzerland
3 Posts

Posted - 02/27/2015 :  02:58:16  Show Profile  Reply with Quote
Nothing? :(
Go to Top of Page

gbritton
Flowing Fount of Yak Knowledge

2780 Posts

Posted - 02/27/2015 :  05:04:32  Show Profile  Reply with Quote
Post your queries and create table stmts
Go to Top of Page

FerK
Starting Member

Switzerland
3 Posts

Posted - 02/27/2015 :  07:19:55  Show Profile  Reply with Quote
Thank you gbritton for your answer. I'm a total stranger to SQL, so I've taken it one step at a time. I tried so far with phpMyAdmin, exporting the old table to my hard drive, and then selecting the new table, and attempting to import the dump. I haven't tried queries (remember I'm starting from 0, so I would have to read SQL syntax and commands from the beginning).
Go to Top of Page
  Previous Topic Topic Next Topic  
 Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.04 seconds. Powered By: Snitz Forums 2000