Welcome to Dream.In.Code
Become an Expert!

Join 150,140 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 2,296 people online right now. Registration is fast and FREE... Join Now!




Too much Inconsistencies in Mysql

 
Reply to this topicStart new topic

Too much Inconsistencies in Mysql

sattua
6 Aug, 2008 - 01:12 PM
Post #1

New D.I.C Head
*

Joined: 20 Mar, 2008
Posts: 27


My Contributions
I have a table in mysql with many Inconsistencies (for example :
Repeated primary keys); I have exported that table from excel with the command "load data.....",

thanks in advance..............







User is offlineProfile CardPM
+Quote Post

dineeshd
RE: Too Much Inconsistencies In Mysql
6 Aug, 2008 - 01:19 PM
Post #2

D.I.C Addict
Group Icon

Joined: 30 Jun, 2008
Posts: 579



Thanked: 16 times
Dream Kudos: 575
My Contributions
What exactly you want?
User is offlineProfile CardPM
+Quote Post

sattua
RE: Too Much Inconsistencies In Mysql
6 Aug, 2008 - 08:47 PM
Post #3

New D.I.C Head
*

Joined: 20 Mar, 2008
Posts: 27


My Contributions
Remove the inconsistencies without eliminating data ...

thanks...
User is offlineProfile CardPM
+Quote Post

jjsaw5
RE: Too Much Inconsistencies In Mysql
8 Aug, 2008 - 11:21 AM
Post #4

I must break you
Group Icon

Joined: 4 Jan, 2008
Posts: 1,633



Thanked: 8 times
Dream Kudos: 125
My Contributions
QUOTE(sattua @ 7 Aug, 2008 - 12:47 AM) *

Remove the inconsistencies without eliminating data ...

thanks...



How are we supposed to know what the inconsistencies of YOUR database are?

None of us have ever seen it so with out you telling us or us seeing it we are never going to be able to help you with this.
User is offlineProfile CardPM
+Quote Post

Trogdor
RE: Too Much Inconsistencies In Mysql
12 Aug, 2008 - 09:11 AM
Post #5

D.I.C Addict
Group Icon

Joined: 6 Oct, 2006
Posts: 549



Thanked: 4 times
Dream Kudos: 125
My Contributions
The main problem is going to be the duplicates in the primary key (that will never be a real primary key this way).
I suggest adding a new autoincrement column that will function as the real primary key.
From there on you can identify the individual columns and use sql statements to clean up the mess.
User is offlineProfile CardPM
+Quote Post

Fast ReplyReply to this topicStart new topic
Time is now: 1/9/09 02:14AM

Be Social

Dream.In.Code RSS Feed Dream.In.Code LinkedIn Group Follow Us On Twitter

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

DIC Chatroom

Bye Bye Ads

Monthly Drawing

Thumb Drive

Top Contributors

Top 10 Kudos This Month