Re: Redundant records in DataBase

2003-08-14 Thread Egor Egorov
Joseph Maxwell <[EMAIL PROTECTED]> wrote:
> 
> I am uploading records from a user data entered log file with
> mysqlimport on a periodic basis. I would like to prevent the duplication
> of records to keep the system non-redundant. How can I best achieve
> this?

Create UNIQUE key on those columns that should contain non-repeatable values and use 
mysqlimport with --ignore option.



-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Egor Egorov
 / /|_/ / // /\ \/ /_/ / /__   [EMAIL PROTECTED]
/_/  /_/\_, /___/\___\_\___/   MySQL AB / Ensita.net
   <___/   www.mysql.com




-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]



Redundant records in DataBase

2003-08-14 Thread Joseph Maxwell
Hello,

I am uploading records from a user data entered log file with
mysqlimport on a periodic basis. I would like to prevent the duplication
of records to keep the system non-redundant. How can I best achieve
this?

Thanks.

--  Joe  --


-- 
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]