List:General Discussion« Previous MessageNext Message »
From:Gerald Clark Date:September 9 2002 2:06pm
Subject:Re: How to retrieve "Insert Into Select From" records effected
View as plain text  
insert ignore into select from
will skip duplicates.

Karl J. Stubsjoen wrote:

>Hello,
>
>How can I determin what erros occur from an "Insert into select from"
>statement?  Namely, I'm looking for any duplicate record errors.  It is
>important to inform the user (in a web browser) whether or not a particular
>insert would fail.
>
>Must I perform a lookup first, or is there a way to capture this error, or
>look up a list of errors for the last SQL command.
>
>Thanks,
>
>Karl
>
>
>---------------------------------------------------------------------
>Before posting, please check:
>   http://www.mysql.com/manual.php   (the manual)
>   http://lists.mysql.com/           (the list archive)
>
>To request this thread, e-mail <mysql-thread119076@stripped>
>To unsubscribe, e-mail
> <mysql-unsubscribe-gerald_clark=suppliersystems.com@stripped>
>Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
>
>


Thread
How to retrieve "Insert Into Select From" records effectedKarl J. Stubsjoen9 Sep
  • Re: How to retrieve "Insert Into Select From" records effectedGerald Clark9 Sep