Re: multiple unique updates

2003-05-28 Thread Victoria Reznichenko
Andrew Hazen [EMAIL PROTECTED] wrote:
 
 Does anyone know a way to do multiple unique updates in one query, the
 way you can in an insert query?
 
 
 
 I have a table with several thousand records.  Periodically every record
 in this table needs one field to be updated.  Slows down the process if
 each record is updated with a separate query.
 

You can use UPDATE with WHERE clause, or may be REPLACE is a solution for you. Could 
you explain your problem more detailed?


-- 
For technical support contracts, goto https://order.mysql.com/?ref=ensita
This email is sponsored by Ensita.net http://www.ensita.net/
   __  ___ ___   __
  /  |/  /_ __/ __/ __ \/ /Victoria Reznichenko
 / /|_/ / // /\ \/ /_/ / /__   [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]



multiple unique updates

2003-05-27 Thread Andrew Hazen
Hi,

 

Does anyone know a way to do multiple unique updates in one query, the
way you can in an insert query?

 

I have a table with several thousand records.  Periodically every record
in this table needs one field to be updated.  Slows down the process if
each record is updated with a separate query.

 

mysql

 

Andrew Hazen, O.C.P.

E-Commerce Developer

Jatech Solutions Inc.

www.jatech.ca

Specializing in OSCOMMERCE applications and PHP/MySQL programming.