Re: duplicate rows in spite of multi-column unique constraint

2015-03-24 Thread shawn l.green
Hi Chris, On 3/24/2015 10:07 AM, Chris Hornung wrote: Thanks for the suggestions regarding non-printing characters, definitely makes sense as a likely culprit! However, the data really does seem to be identical in this case: mysql> select id, customer_id, concat('-', group_id, '-') from app_cu

Re: duplicate rows in spite of multi-column unique constraint

2015-03-24 Thread Chris Hornung
Thanks for the suggestions regarding non-printing characters, definitely makes sense as a likely culprit! However, the data really does seem to be identical in this case: mysql> select id, customer_id, concat('-', group_id, '-') from app_customergroupmembership where customer_id ='ajEiQA'; +

Re: duplicate rows in spite of multi-column unique constraint

2015-03-24 Thread Johan De Meersman
Please do select id, customer_id, concat('-', group_id, '-') from app_customergroupmembership where customer_id ='ajEiQA'; I suspect one of those group IDs has a trailing space or similar 'invible' character that makes it not identical. - Original Message - > From: "Chris

Re: Duplicate entry '2' for key 1

2010-11-09 Thread Michael Dykman
Ilham, It means what it says.You are attempting to insert into a table that has a primary or other unique key and that data which you are trying to insert already has that unique value. To diagnose, it would be helpful to know the circumstance under which you got this error message. - micha

Re: Duplicate entries despite group by

2010-02-21 Thread Carsten Pedersen
Is the CREATE TABLE you show the result of SHOW CREATE TABLE or your own create statement? If the latter, please show the output of SHOW CREATE. Does SELECT succeed if you remove the INSERT part of the statement? You might want to consider adding an index on transactionlogid, this could bring

Re: Duplicate Entry, But Table Empty!

2009-12-14 Thread Mattia Merzi
2009/12/13 Victor Subervi : [...] > Please advise. review your sql: you are inserting into tem126072414516 and selecting from tem126072385457 ( Asterisk in Pinter Tibor's mail means "bold" ) Greetings, Mattia Merzi. -- MySQL General Mailing List For list archives: http://lists.mysql.com

Re: Duplicate Entry, But Table Empty!

2009-12-14 Thread Johan De Meersman
Gods. What is this, a creche ? *plonk* On Sun, Dec 13, 2009 at 6:44 PM, Victor Subervi wrote: > On Sun, Dec 13, 2009 at 12:21 PM, Pinter Tibor wrote: > > > Victor Subervi wrote: > > > >> Hi; > >> > >> mysql> insert into *tem126072414516* (ProdID, Quantity) values ("2", > "2"); > >> mysql> sele

Re: Duplicate Entry, But Table Empty!

2009-12-13 Thread Victor Subervi
On Sun, Dec 13, 2009 at 12:21 PM, Pinter Tibor wrote: > Victor Subervi wrote: > >> Hi; >> >> mysql> insert into *tem126072414516* (ProdID, Quantity) values ("2", "2"); >> mysql> select * from *tem126072385457*; >> > > mysql> insert into *tem126072414516* (ProdID, Quantity) values ("2", "2"); ERRO

Re: Duplicate Entry, But Table Empty!

2009-12-13 Thread Pinter Tibor
Victor Subervi wrote: Hi; mysql> insert into *tem126072414516* (ProdID, Quantity) values ("2", "2"); mysql> select * from *tem126072385457*; t -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/mysql?unsub=arch...@jab.org

Re: Duplicate key name when importing mysql dump file

2009-06-19 Thread ars k
Hi Jason, You may have to run "ANALYZE TABLE.." for the particular table for which you are facing the error. So it'll rebuild the indexes. This would be the best one to save your data. We can use the method which Mr.Isart suggested, but it'll ignore the error and also will lead to data loss. Rega

Re: Duplicate key name when importing mysql dump file

2009-06-19 Thread Isart Montane
Hi Jason, if you run mysql with -f it will ignore any errors and continue importing cat aac.sql | mysql -f -u root AAC Isart On Wed, Jun 17, 2009 at 8:59 PM, Jason Novotny wrote: > Hi, > > I'm trying to import a dumpfile like so: > > cat aac.sql | mysql -u root AAC > > It all runs fine unti

Re: Duplicate values inserted!

2008-11-17 Thread Carlos Proal
Seems fine to me, i guess the problem is somewhere else. Maybe you should try a full trace in Eclipse to detect the issue. Carlos jean claude babin wrote: Hello, I'm using Eclipse 3.3 and I use a model class HandlereplyModel.java to insert values to a mysql database using mysql5.0 server.Whe

Re: duplicate key question

2007-06-23 Thread Steve Edberg
At 10:19 PM -0500 6/22/07, Chris W wrote: when you get a duplicate key error it says something to the effect of "Duplicate entry 'xyz' for key x" What I want to know is how to find out what table fields are part of key x? 'show index' is what you want, I think: http://dev.mysql.com/doc/refma

Re: duplicate key question

2007-06-22 Thread Chris W
mos wrote: Chris, You probably want to know the specific table, so I wonder if it shows up in the MySQL error logs? Of course you can dump the database structure and look for key "x" by doing: mysqldump --no-data --skip-opt --skip-comments --compact and redirect it out to a text file. Ho

Re: duplicate key question

2007-06-22 Thread mos
At 09:19 PM 6/22/2007, you wrote: when you get a duplicate key error it says something to the effect of "Duplicate entry 'xyz' for key x" What I want to know is how to find out what table fields are part of key x? -- Chris, You probably want to know the specific table, so I wonder if it s

Re: Duplicate Key problem (UPS software)

2006-06-20 Thread Vince LaMonica
On Tue, 20 Jun 2006, css wrote: } When someone voids a shipment in the UPS software, it sends another } INSERT to the database, with the same data as the original row, the only } difference being the void column is now "Y"; } } This of course doesn't work because "Duplicate entry 'BLAHBLAH' for

Re: Duplicate Key problem (UPS software)

2006-06-20 Thread Brent Baisley
If there is a way for you to capture INSERT commands and convert them to REPLACE commands, you'll have your solution. - Original Message - From: "css" <[EMAIL PROTECTED]> To: Sent: Tuesday, June 20, 2006 6:44 PM Subject: Duplicate Key problem (UPS software) I'm having a problem d

Re: duplicate entry (same time every day)

2006-03-09 Thread Ronan McGlue
[EMAIL PROTECTED] wrote: Ronan McGlue <[EMAIL PROTECTED]> wrote on 03/09/2006 05:05:15 AM: > i have a little quirck with my current Mysql setup. I log all messages > from my mtas into Mysql and then use a simple query to generate stats > from them... as below: > > mysql> select exim.hour,

Re: duplicate entry (same time every day)

2006-03-09 Thread SGreen
Ronan McGlue <[EMAIL PROTECTED]> wrote on 03/09/2006 05:05:15 AM: > i have a little quirck with my current Mysql setup. I log all messages > from my mtas into Mysql and then use a simple query to generate stats > from them... as below: > > mysql> select exim.hour,sum(exim.count),stats.spam,stat

Re: Duplicate Insert Crashes Client

2005-11-15 Thread Bruce Martin
Ok, I found this one too. It was my own client, and of course, the problem was on my side of things. I want to thank everyone who replied. What was happening was I was trying to free the mysql structure and it was already freed. On Nov 14, 2005, at 6:50 PM, Gleb Paharenko wrote: Hello. O

Re: Duplicate Insert Crashes Client

2005-11-14 Thread Gleb Paharenko
Hello. > Ok new problem. If for some reason, my client tries to INSERT >something Please could you answer, what kind of client do you mean. Is it your own client application or mysql command line client or something else? If it is yours and it is small, you can send the code to the list,

Re: Duplicate Insert Crashes Client

2005-11-14 Thread Patrick
What type client are you using? With the C API you would test for the return value (0 or 1) and process accordingly. You could use 'INSERT IGNORE' syntax, but then you would not know what records failed (you could test for how many were inserted with mysql_info() using the C API). See Chap

Re: Duplicate column error when creating view on 5.0.13

2005-10-09 Thread Terence
[EMAIL PROTECTED] wrote: Does this make better sense? Yes, many thanks and regards, Terence -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: Duplicate column error when creating view on 5.0.13

2005-10-07 Thread SGreen
Terence <[EMAIL PROTECTED]> wrote on 10/07/2005 03:49:46 AM: > Hi All, > > I get a duplicate column error on 5.0.13 when creating a view. Am I > doing something wrong here or do I submit a bug report? This should be > allowed as the col names > are not duplicated. > > Reproduce: > > create ta

Re: Duplicate column error when creating view on 5.0.13

2005-10-07 Thread Johan Höök
Hi Terence, I guess I was a bit unclear on my comment on the SELECT *. Anyway you did what I meant, i.e. changed one of your category_id's so that the set of columnnames ( as implied by the SELECT * ) becomes unique. What happens is that your SELECT * becomes SELECT ticket_id,category_id,category_

Re: Duplicate column error when creating view on 5.0.13

2005-10-07 Thread Martijn Tonies
> > I think your problem lies in your SELECT * > > If you look at the columnheaders below you get category_id twice. > > I guess you have to specify your columns with aliases. > > > > /Johan > > > > Hi Johan, > > Nope, if I change the column name to category_id1 then it's okay. See > this: (apolog

Re: Duplicate column error when creating view on 5.0.13

2005-10-07 Thread Terence
Johan Höök wrote: Hi Terence, I think your problem lies in your SELECT * If you look at the columnheaders below you get category_id twice. I guess you have to specify your columns with aliases. /Johan Hi Johan, Nope, if I change the column name to category_id1 then it's okay. See this: (ap

Re: Duplicate column error when creating view on 5.0.13

2005-10-07 Thread Johan Höök
Hi Terence, I think your problem lies in your SELECT * If you look at the columnheaders below you get category_id twice. I guess you have to specify your columns with aliases. /Johan SELECT * FROM ticket_master tm, category_master cm WHERE tm.category_id = cm.category_id; +---+

Re: Duplicate entry error

2005-07-04 Thread Gleb Paharenko
Hello. > | 4.0.17-standard | It is an old version of MySQL which could contain lots of bugs. It is strongly recommended to upgrade to the latest release 4.1.12, or if it is impossible in your production environment to 4.0.24. Usually upgrade solves such kind of errors. Please, next

Re: Duplicate entry error

2005-07-02 Thread Gleb Paharenko
ag > > > -Original Message- > From: Gleb Paharenko [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 30, 2005 3:20 PM > To: mysql@lists.mysql.com > Subject: Re: Duplicate entry error > > > Hello. > > Please examine your master's

RE: Duplicate entry error

2005-07-02 Thread anurag.dashputre
in for your help and cooperation. Anurag -Original Message- From: Gleb Paharenko [mailto:[EMAIL PROTECTED] Sent: Thursday, June 30, 2005 3:20 PM To: mysql@lists.mysql.com Subject: Re: Duplicate entry error Hello. Please examine your master's binary and slave's relay logs with

Re: Duplicate entry error

2005-06-30 Thread Gleb Paharenko
Hello. Please examine your master's binary and slave's relay logs with mysqlbinlog utility to find if sent and received SQL statements are different. Sent your MySQL versions on master and slave. Include complete output of 'SHOW SLAVE STATUS'. If your version is rather old, check if the prob

Re: duplicate key with back slash character in the key?

2004-12-22 Thread SGreen
Does your code properly escape the backslash character as it writes to the database? IF you are NOT using 'cn=abc\\, def, ou=accounts' in your INSERT and UPDATE statements, you will get values that look like 'cn=abc, def, ou=accounts' in your data. Without actual data, actual statements, a few

Re: Duplicate Entries

2004-09-24 Thread Egor Egorov
Suresh <[EMAIL PROTECTED]> wrote: > I am porting from 4.0.0-alpha-nt to 4.0.1-alpha-nt. In which i have a > table with two primary key, my older mysql server insert all the records > except the duplicate fields(Primary Key). Whereas in the new mysql > server it exits whenever it sees a duplicate

Re: Duplicate Entries

2004-09-22 Thread gerald_clark
Suresh wrote: Hi, Yes ofcourse it is a primary key with two fields. The insert exists whenever it has a duplicate entry, it doesn't continue with further records. Is there any scope to resolve it. Thanks Suresh Eldo Skaria wrote: insert ignore -- MySQL General Mailing List For list archives: h

Re: Duplicate Entries

2004-09-22 Thread Suresh
Hi, Yes ofcourse it is a primary key with two fields. The insert exists whenever it has a duplicate entry, it doesn't continue with further records. Is there any scope to resolve it. Thanks Suresh Eldo Skaria wrote: > Hi, > > Suresh may be expressing that he has a primary key with two fields. >

Re: Duplicate Entries

2004-09-21 Thread Eldo Skaria
Hi, Suresh may be expressing that he has a primary key with two fields. Eldo. On Tue, 21 Sep 2004 19:32:17 -0400, Rhino <[EMAIL PROTECTED]> wrote: > > - Original Message - > From: "Suresh" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Tuesday, September 21, 2004 6:43 PM > Subje

Re: Duplicate Entries

2004-09-21 Thread Rhino
- Original Message - From: "Suresh" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 21, 2004 6:43 PM Subject: Duplicate Entries > Hello All, > > I am porting from 4.0.0-alpha-nt to 4.0.1-alpha-nt. In which i have a > table with two primary key, my older mysql server

Re: Duplicate Rows

2004-09-21 Thread Rhino
- Original Message - From: "A Z" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, September 21, 2004 10:02 AM Subject: Duplicate Rows > > > MySQL 4.0.14 > > In a scenario: > > Ref EmailAddr > > 1[EMAIL PROTECTED] > 2[EMAIL PROTECTED] > 3[EMAIL PRO

RE: "Duplicate entry" breaks replication

2004-09-02 Thread Victor Pendleton
Did you actually stop all writes to the master data while you were copying the data over to the slave database? Is it possible that the connection you issued the read lock with timed out before the transfer was completed? -Original Message- From: Alex Greg To: [EMAIL PROTECTED] Sent: 9/2/

Re: Duplicate selection with change

2004-06-28 Thread SGreen
cc: Fax to: 06/28/2004 02:43 Subject: Re: Duplicate selection

Re: Duplicate selection with change

2004-06-27 Thread Scott Haneda
on 06/27/2004 11:31 PM, Scott Haneda at [EMAIL PROTECTED] wrote: > So, I need to basically: > SELECT iamge_title, image_filename, image_url, image_width, image_height > from images where user_id = '123'; > > Then, take that result and insert all those rows in the same table, setting > type='2' an

Re: Duplicate does not exist

2004-05-28 Thread fr0g
Egor Egorov wrote: fr0g <[EMAIL PROTECTED]> wrote: Well I'm in despare. I have a record in my DB with name=Michalis and surname=Ka*l*ogiannis. When I try to add name=Michalis and surname=Ka*k*ogiannis I get the error about duplicates. It doesn't give an error in the english field, but it does i

Re: Duplicate does not exist

2004-05-28 Thread Egor Egorov
fr0g <[EMAIL PROTECTED]> wrote: > > Well I'm in despare. > I have a record in my DB with name=Michalis and surname=Ka*l*ogiannis. > When I try to add name=Michalis and surname=Ka*k*ogiannis I get the > error about duplicates. > It doesn't give an error in the english field, but it does in greek

Re: Duplicate does not exist

2004-05-28 Thread fr0g
Well I'm in despare. I have a record in my DB with name=Michalis and surname=Ka*l*ogiannis. When I try to add name=Michalis and surname=Ka*k*ogiannis I get the error about duplicates. It doesn't give an error in the english field, but it does in greek fields (with greek characters) even though K

Re: Duplicate does not exist

2004-05-28 Thread fr0g
Scott Haneda wrote: on 05/28/2004 12:31 AM, fr0g at [EMAIL PROTECTED] wrote: I don't see how this mail helps me. I still don't know why it sais I have a duplicate record and still don't know how to correct this. Those were nice stories, but not really helpfull. In my table every record has a uin

Re: Duplicate does not exist

2004-05-28 Thread Scott Haneda
on 05/28/2004 12:31 AM, fr0g at [EMAIL PROTECTED] wrote: > I don't see how this mail helps me. > I still don't know why it sais I have a duplicate record and still don't > know how to correct this. > Those were nice stories, but not really helpfull. > In my table every record has a uinque id which

Re: Duplicate does not exist

2004-05-28 Thread fr0g
I don't see how this mail helps me. I still don't know why it sais I have a duplicate record and still don't know how to correct this. Those were nice stories, but not really helpfull. In my table every record has a uinque id which ofcourse is the key. Yet, the only way I can avoid duplicates is t

Re: Duplicate does not exist

2004-05-27 Thread Robert J Taylor
fr0g wrote: Good evening all. I'm facing a problem with a specific table and the uniques that it has. I have a table, hosting data of peoples names. Some of it's columns are, name_english, surname_english, name_original, surname_original, name_greek, surname_greek. I have as unique each combinatio

Re: Duplicate entry

2004-01-28 Thread Mark Matthews
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Samyukta Akunuru wrote: > Hi, > > I am getting following error while using Hibernate with mySql.Any help appreciated. Thank you! > > 2004-01-28 14:02:51,037 [main] ERROR net.sf.hibernate.util.JDBCExceptionReporter - Invalid argument value, message from

Re: Duplicate combination

2003-12-15 Thread fr0g
Chris Nolan wrote: Hi! There are many ways, depending on whether you want the database to handle it, or you want your application to handle it. What you want is a UNIQUE index on surname_original and name_original. Assuming the table already exists: ALTER TABLE names ADD UNIQUE(name_original,

Re: Duplicate combination

2003-12-14 Thread Ivan Cukic (Foment)
fr0g wrote: I have a table with peoples names in 3 different languages. Fields are like: id, surname_english, name_english, surname_original, name_original, surname_greek, name_greek. What I want is to check if a person has been entered twice in that table. You can create unique index on (surname_

Re: Duplicate combination

2003-12-14 Thread Chris Nolan
Hi! There are many ways, depending on whether you want the database to handle it, or you want your application to handle it. What you want is a UNIQUE index on surname_original and name_original. Assuming the table already exists: ALTER TABLE names ADD UNIQUE(name_original,surname_original);

Re: Duplicate combination

2003-12-14 Thread Aleksandar Bradaric
Hi, > I have a table with peoples names in 3 different languages. > Fields are like: id, surname_english, name_english, surname_original, > name_original, surname_greek, name_greek. > What I want is to check if a person has been entered twice in that table. > The key is ID but I can't have any oth

Re: duplicate records check

2003-07-09 Thread Nils Valentin
Hi Neil, 1) You could ask for the count of each listed item in a column. something like: SELECT item, count(item) from parts GROUP BY item; 2) you could then use SELECT id,item from parts WHERE item = 'xxx'; to review the double entries. This is just a general sample, perhaps if you give mo

RE: duplicate records check

2003-07-08 Thread Kalis, Frank
Title: RE: duplicate records check Hi Neil, try something like this SELECT FROM GROUP BY HAVING COUNT(*) > 1 Mit freundlichen Grüssen Frank Kalis Asset Management ProACTIV___ CiV Versicherungen * PB Versicherungen * PB Pensionsfonds

Re: Duplicate records

2003-06-06 Thread Peter Brawley
Insert. PB - - Original Message - From: John Griffin To: Steve Marquez ; MySQL List Cc: PHP eMail List Sent: Friday, June 06, 2003 2:51 PM Subject: RE: Duplicate records Hello Steve, Do a select on the record before you insert it. If the record does not exist in the

RE: Duplicate records

2003-06-06 Thread Mike Hillyer
You can always catch the Duplicate Key error and respond accordingly in your PHP script. Regards, Mike Hillyer www.vbmysql.com -Original Message- From: Steve Marquez [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 1:41 PM To: MySQL List Cc: PHP eMail List Subject: Duplicate records

RE: Duplicate records

2003-06-06 Thread John Griffin
Hello Steve, Do a select on the record before you insert it. If the record does not exist in the database (i.e. mysql_num_rows () == 0) than it is safe to do the insert. John -Original Message- From: Steve Marquez [mailto:[EMAIL PROTECTED] Sent: Friday, June 06, 2003 3:41 PM To: MySQL L

Re: Duplicate

2003-03-02 Thread Tore Bostrup
Simply create a UNIQUE Index on the column to avoid duplicates. That will be case insensitive, and trailing spaces AFAIK, but spaces inside the columns text have significance. HTH, Tore. - Original Message - From: "Dee" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Sunday, March 02,

Re: Duplicate keys?

2003-02-27 Thread Rafal Jank
Dnia Thu, 27 Feb 2003 11:22:57 +0100 "Datatal AB - Gauffin, Jonas" <[EMAIL PROTECTED]> zeznał/a co następuje: > Hello > > Have anyone got this error before: > ERROR 1062: Duplicate entry '2147483647' for key 1 > > I get it when I do a simple insert query. The primary key is an > auto_increment f

RE : RE : Duplicate key delete record with same key

2002-11-21 Thread BPF Webmaster
the old record is deleted before the new record is inserted. >> So the result was predictible, sorry having sollicited the list. JM -Original Message- From: Victoria Reznichenko [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21, 2002 6:01 PM To: [EMAIL PROTECTED] Subject: r

re: RE : Duplicate key delete record with same key

2002-11-21 Thread Victoria Reznichenko
BPF, Thursday, November 21, 2002, 4:36:58 PM, you wrote: BW> CREATE TABLE `reg_member` ( BW> `account` bigint(20) NOT NULL auto_increment, BW> `userid` varchar(48) NOT NULL default 'Your name', BW> `uilogin` tinyint(4) NOT NULL default '0', BW> `id` varchar(48) NOT NULL default '', BW> `password`

RE : Duplicate key delete record with same key

2002-11-21 Thread BPF Webmaster
', `joined` bigint(20) default NULL, `expired` bigint(20) default NULL, `status` varchar(20) NOT NULL default '', PRIMARY KEY (`account`), UNIQUE KEY `id` (`id`) ) TYPE=MyISAM A+ JM -Original Message- From: Jocelyn Fournier [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 21,

Re: Duplicate key delete record with same key

2002-11-21 Thread Jocelyn Fournier
Hi, Could you give us SHOW CREATE TABLE your_table ? Greetings from France too ;) Jocelyn - Original Message - From: "BPF Webmaster" <[EMAIL PROTECTED]> To: "MySQL" <[EMAIL PROTECTED]> Sent: Thursday, November 21, 2002 2:25 PM Subject: Duplicate key delete record with same key > Usin

Re: Duplicate entries

2002-09-28 Thread Franz Alt
Sorry, but justs a quick remark on the top: Have you looked at small and KAPITAL letters? -- Franz Alt [EMAIL PROTECTED] > at work I run mysql 3.23.45. on a windows2000 machine with apache 1.3.23 > and php4.06. at home it's Linux SuSe *.0, mysql 4.03 apache 1.3.26 and > php4.2.3. the problem i

re: Duplicate key error

2002-09-23 Thread Egor Egorov
Graham, Sunday, September 22, 2002, 3:15:23 PM, you wrote: GH> I am aware that this is an error of my own making, however . . . GH> I am unable to install my sql because the scipt fails with GH> a duplicate key error GH> Preparing db table GH> Preparing host table GH> Preparing user table GH>

Re: duplicate entries mystery

2002-06-13 Thread Jocelyn Fournier
rom: "Nick Wilson" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, June 13, 2002 4:57 PM Subject: Re: duplicate entries mystery > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA1 > > > * and then Nick Wilson declared > > I'm having some weir

Re: duplicate entries mystery

2002-06-13 Thread Nick Wilson
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 * and then Nick Wilson declared > I'm having some weirdness when inserting from the php api, I do not get > the same results if I use the mysql server directly. Here is the code: Please disregard. It appears to be some bizzare Apache/http thing,

RE: Duplicate Record

2002-05-22 Thread Gurhan Ozen
The answer is there ... : http://www.mysql.com/doc/L/O/LOAD_DATA.html Gurhan -Original Message- From: Wong Zach-CHZ013 [mailto:[EMAIL PROTECTED]] Sent: Wednesday, May 22, 2002 8:18 PM To: Wong Zach-CHZ013; '[EMAIL PROTECTED]' Subject: RE: Duplicate Record > -Ori

RE: Duplicate Record

2002-05-22 Thread Wong Zach-CHZ013
> -Original Message- > From: Wong Zach-CHZ013 > Sent: Wednesday, May 22, 2002 7:11 PM > To: [EMAIL PROTECTED] > Subject: Duplicate Record > > Hi > 1) Suppose, in a file, say testfile.sql, > it contains a line > eg: > LOAD DATA INFILE "mlc_stat_" INTO table mlc FIE

RE: Duplicate Keys

2002-04-26 Thread vivek . chaudhary
There are couple of ways you can do it. 1) You can use the following sql to find out duplicate rows and then write few more sql to delete duplicate. SELECT column(s), count(*) FROM table-a GROUP BY column(s) HAVING count(*) > 1; then massage the data with couple of more sqls. 2) This wa

Re: Duplicate Keys

2002-04-26 Thread Fournier Jocelyn [Presence-PC]
Hi, Try ALTER IGNORE TABLE your_table ADD UNIQUE (column_where_you_dont_want_duplicates); Regards, Jocelyn Fournier - Original Message - From: "Oswaldo Castro" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Friday, April 26, 2002 8:20 PM Subject: Duplicate Keys > Hi List > > Sor

Re: Duplicate Records

2002-02-13 Thread rc
any reason not to select distinct into a tmp table? On Sun, 10 Feb 2002, DL Neil wrote: > Rich, > > > How does one go about removing one of two identical records in a MySQL > > database? My mistake in an earlier database was not applying a unique > > number to each record (1, 2, 3, ---). I kn

RE: Duplicate Records

2002-02-13 Thread Rick Emery
A quick method is to create a new table: CREATE TABLE newtable SELECT DISTINCT * FROM oldtable; note; manually verify newtable has your data. Then proceed: DROP TABLE oldtable; CREATE TABLE oldtable SELECT * FROM newtable; DROP TABLE newtable; -Original Message- From: Rich [mailto:[E

Re: Duplicate Records

2002-02-12 Thread DL Neil
Dan, [I've cc-ed this to the list and to Rich - who asked the original question] > You can do the following to remove duplicates: > > - create table foo as select distinct cols from > table_name_containing_duplicates; > - drop table_name_containing_duplicates; > - alter table foo rename to table_

Re: Duplicate Records

2002-02-12 Thread Fournier Jocelyn [Presence-PC]
Hi, You can try to use ALTER IGNORE TABLE syntax : ALTER IGNORE TABLE your_table ADD UNIQUE(Id); Regards, Jocelyn Fournier - Original Message - From: "Rich" <[EMAIL PROTECTED]> To: "MySql" <[EMAIL PROTECTED]> Sent: Sunday, February 10, 2002 5:31 PM Subject: Duplicate Records > How do

Re: Duplicate Records

2002-02-12 Thread DL Neil
Rich, > How does one go about removing one of two identical records in a MySQL > database? My mistake in an earlier database was not applying a unique > number to each record (1, 2, 3, ---). I know it's possible to use the > DISTINCT operator to show only one of the identical records in a resul

RE: Duplicate Records

2002-02-10 Thread Daniel Rosher
avoid duplicates. Regards, Dan > -Original Message- > From: DL Neil [mailto:[EMAIL PROTECTED]] > Sent: Monday, 11 February 2002 8:30 a.m. > To: Rich; MySql > Subject: Re: Duplicate Records > > > Rich, > > > How does one go about removing one of two identica

Re: Duplicate Records

2002-02-10 Thread Fournier Jocelyn [Presence-PC]
Hi, You can try to use ALTER IGNORE TABLE syntax : ALTER IGNORE TABLE your_table ADD UNIQUE(Id); Regards, Jocelyn Fournier - Original Message - From: "Rich" <[EMAIL PROTECTED]> To: "MySql" <[EMAIL PROTECTED]> Sent: Sunday, February 10, 2002 5:31 PM Subject: Duplicate Records > How do

Re: Duplicate Records

2002-02-10 Thread DL Neil
Rich, > How does one go about removing one of two identical records in a MySQL > database? My mistake in an earlier database was not applying a unique > number to each record (1, 2, 3, ---). I know it's possible to use the > DISTINCT operator to show only one of the identical records in a resul

RE: Duplicate Records

2002-02-10 Thread Todd Williamsen
First off, You would need to add an "id" field, then set it to a primary key, then set it to "auto_increment" This will order them correctly -Original Message- From: Rich [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 10, 2002 10:31 AM To: MySql Subject: Duplicate Records How does

Re: Duplicate column names

2001-11-09 Thread Steve Werby
"Brad Harriger" <[EMAIL PROTECTED]> wrote: > How does MySQL handle duplicate column names? Kind of open ended, but I'll give it a shot. MySQL doesn't allow duplicate column names within a table, but if you are referring to a query accessing multiple tables containing fields with the same name th

Re: Duplicate Inserts

2001-10-19 Thread Eddie Heard
Okay, so I did some detective work and found the problem. I thought you might want to know the cause. I use Textpad as my HTML editor right now, and when you create an HTML file from scratch, it has the following tag: The BACKGROUND="?" part was causing the problem. When I remove ONLY that p

Re: duplicate delete query

2001-08-31 Thread Gerald Clark
ALTER IGNORE TABLE mytable ADD UNIQUE (email); will both add a unique key ( which will avoide this problem in the future ) and delete the duplicates. Rory O'Connor wrote: > excuse me if this is too newbie...but I need to perform a duplicate > delete on my database using the e-mail address as

Re: duplicate delete query

2001-08-30 Thread Carl Troein
Rory O'Connor writes: > I want to leave one record behind, but delete all other records that > have the same e-mail address. Is there a standard query for this or do > I need to write a script that will do it? Getting a list of the duplicate rows is simple enough, but deleting them requires a

Re: duplicate delete query

2001-08-30 Thread Rory O'Connor
I want to leave one record behind, but delete all other records that have the same e-mail address. Is there a standard query for this or do I need to write a script that will do it? THanks, Rory On Thu, 30 Aug 2001 22:35:48 -0500, "Rory O'Connor" <[EMAIL PROTECTED]> wrote: >Do you want to dele

Re: duplicate delete query

2001-08-30 Thread Chris Johnson
Do you want to delete all records which have duplicates, or do you want to delete all the duplicates but leaving one copy of each duplicated record behind? - Original Message - From: "Rory O'Connor" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Thursday, August 30, 2001 4:50 PM Subje

Re: Duplicate entry for SELECT query

2001-08-06 Thread Sinisa Milivojevic
Ivan Lulukyan writes: > Hi All. > Strange thing.The query below: > > select concat(domain,path,file) as url, title, '' as blank1, docdate, size, > date as lastmod, 'keywords' as keyw, description as descr, a.ID, sum((word > like 'acc')) as r, ( sum(word like 'acc')) as qu, f.ID, author, > class,c

Re: Duplicate entry for SELECT query

2001-08-05 Thread Stefan Hinz
Dear Ivan, I am full of admiration for your huge number of left joins in this query! :-) Looks quite funny to me how a SELECT can produce an error that you would expect from an INSERT query. Anyway, try to type this query into a multi-line command line (MySQL Monitor, the command line tool), and

Re: Duplicate entry

2001-06-27 Thread Sherzod Ruzmetov
Try to design your tables so, that it would be impossible to enter dublicate primary keys. And don't let users (if it's CGi application) to set or play with your primary keys (well, we could talk more about this one). If you used AUTO_INCREMENT, or UNIQUE, I bet you wouldn't have such problem.

RE: Duplicate entry '0' for key 1

2001-05-13 Thread Tyrone Mills
Thanks Cal, Anything in particular in the config I should be looking for? Thanks, Tyrone -Original Message- From: Cal Evans [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 13, 2001 9:40 AM To: Mysql@Lists. Mysql. Com Subject: RE: Duplicate entry '0' for key 1 Other than the f

RE: Duplicate entry '0' for key 1

2001-05-13 Thread Cal Evans
levans.com -Original Message- From: Tyrone Mills [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 13, 2001 11:24 AM To: Mysql@Lists. Mysql. Com Subject: RE: Duplicate entry '0' for key 1 Here's the CREATE TABLE syntax I used on the latest table to do this to me... CREATE TABLE sit

RE: Duplicate entry '0' for key 1

2001-05-13 Thread Tyrone Mills
[mailto:[EMAIL PROTECTED]] Sent: Sunday, May 13, 2001 9:06 AM To: Tyrone Mills; Mysql@Lists. Mysql. Com Subject: RE: Duplicate entry '0' for key 1 What's your datatype? Cal http://www.calevans.com -Original Message- From: Tyrone Mills [mailto:[EMAIL PROTECTED]] Sent: Su

RE: Duplicate entry '0' for key 1

2001-05-13 Thread Cal Evans
What's your datatype? Cal http://www.calevans.com -Original Message- From: Tyrone Mills [mailto:[EMAIL PROTECTED]] Sent: Sunday, May 13, 2001 10:59 AM To: Mysql@Lists. Mysql. Com Subject: Duplicate entry '0' for key 1 Importance: High Why is it that a seemingly random intervals anyo

Re: duplicate key error on autoincrement field while inserting

2001-04-24 Thread Dan Shapella
oincrement problems at virtually the same time. And this is the only app running on this system. Why did MySql decide these 2 keys already exist when in fact they don't? >From: Gerald Clark <[EMAIL PROTECTED]> >To: Dan Shapella <[EMAIL PROTECTED]> >CC: [EMAIL PROTECTED]

Re: duplicate key error on autoincrement field while inserting

2001-04-24 Thread Gerald Clark
What operating system are you running, and how big are these files and indicies? Is this a 2 Gig file size limit problem? You are getting near the limit to the size of an unsigned mediumint. Dan Shapella wrote: > > I have a weird one here. > > I have an application that inserts records into

Re: Duplicate of Everything in Table

2001-04-06 Thread oltra jean-michel
On Fri, 6 Apr 2001, Vigile wrote: > Date: Fri, 6 Apr 2001 01:26:05 -0400 > From: Vigile <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Duplicate of Everything in Table > > I have a table, that DOES NOT have a primary key, but is setup like this: > > Field Type Attributes Null Defa

Re: Duplicate of Everything in Table

2001-04-06 Thread Thalis A. Kalfigopoulos
lds I can't do that. > > > > > > > > Ryan Shrout > > > > Production Manager > > > > Athlonmb.com > > > > http://www.athlonmb.com > > > > [EMAIL PROTECTED] > > > > > > > > - Original Message - > &

Re: Duplicate of Everything in Table

2001-04-06 Thread Gerald Clark
er > > > Athlonmb.com > > > http://www.athlonmb.com > > > [EMAIL PROTECTED] > > > > > > - Original Message - > > > From: "Gerald Clark" <[EMAIL PROTECTED]> > > > To: "Vigile" <[EMAIL PROTECTED]> > >

  1   2   >