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

 All Forums
 General SQL Server Forums
 Database Design and Application Architecture
 Can't merge tables

Author  Topic 

FerK
Starting Member

3 Posts

Posted - 2015-02-26 : 08:47:26
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

3 Posts

Posted - 2015-02-27 : 02:58:16
Nothing? :(
Go to Top of Page

gbritton
Master Smack Fu Yak Hacker

2780 Posts

Posted - 2015-02-27 : 05:04:32
Post your queries and create table stmts
Go to Top of Page

FerK
Starting Member

3 Posts

Posted - 2015-02-27 : 07:19:55
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
   

- Advertisement -