<html>
<!-- BEGIN WEBMAIL STATIONERY -->
<head></head>
<body>
<!-- WEBMAIL STATIONERY noneset -->
<DIV></DIV>I would probably write some PHP to do it for me, although I'm not sure how much data you have.&nbsp; I'm thinking I'd itterate through the rows and&nbsp;check for a duplicate value by doing a select statement&nbsp;before doing each row insert.<BR>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">-------------- Original message from "Dave J. Hala Jr." &lt;dave@58ghz.net&gt;: -------------- <BR><BR><BR>&gt; When using mysql 3.26 I had this function that copied records from <BR>&gt; table1 to table2. The query in the fucntion looks like this: <BR>&gt; <BR>&gt; INSERT INTO table2 (field1,field2) SELECT (field1, field2) FROM table1 <BR>&gt; WHERE field1='X' <BR>&gt; <BR>&gt; In table2, field1 was a primary key. If I ran the query, and tried to <BR>&gt; insert a duplicate, mysql 3.x would just "skip" that insert and continue <BR>&gt; on. After switching to mysql 4.x, I discovered that when 4.x encounters <BR>&gt; a duplicate, it stops. This a problem. <BR>&gt; <BR>&gt; I took a wild guess and tried making field1 a "unique key" and it didn't <BR>&gt; solve the problem. Anyone got a work around for this problem? <BR>&gt; <BR>&gt; <BR>&gt; :) Dave <BR>&gt; <BR>&gt; -- <BR>&gt; <BR>&gt; Open Sour
ce Information Systems, Inc. (OSIS) <BR>&gt; Dave J. Hala Jr., President <DAVE@OSIS.US><BR>&gt; 641.485.1606 <BR>&gt; <BR>&gt; _______________________________________________ <BR>&gt; ciapug mailing list <BR>&gt; ciapug@cialug.org <BR>&gt; http://cialug.org/mailman/listinfo/ciapug </BLOCKQUOTE>
<!-- END WEBMAIL STATIONERY -->

</body>
</html>