Re: Updating a Record

2004-02-24 Thread vpendleton
MySQL is designed to do that. If no data is changed, then MySQL will not perform the update. >>>>>>>>>>>>>>>>>> Original Message <<<<<<<<<<<<<<<<<< On 2/24/04, 11:36:39 AM, Jacque Scott &

Re: Updating a Record

2004-02-24 Thread Paul DuBois
At 9:36 -0800 2/24/04, Jacque Scott wrote: I am converting from Access 2.0 to MySQL and I am going through all of my code to make it compatible with MySQL. I was testing my Update for one of my queries and I don't know if I found a bug or if MySQL was designed to do this. In my program I pass an U

Updating a Record

2004-02-24 Thread Jacque Scott
I am converting from Access 2.0 to MySQL and I am going through all of my code to make it compatible with MySQL. I was testing my Update for one of my queries and I don't know if I found a bug or if MySQL was designed to do this. In my program I pass an UPDATE string to MySQL. There can be time

Re: Updating a record with MAX(value)

2003-07-25 Thread Victoria Reznichenko
Vikram Vaswani <[EMAIL PROTECTED]> wrote: > > Is there a way to update the record with maximum value in a table with > another value? > > I am trying this: > > mysql> update services set sfee = 1 where sfee = max(sfee); > Query OK, 0 rows affected (0.06 sec) > Rows matched: 0 Changed: 0 Warnin

Updating a record with MAX(value)

2003-07-24 Thread Vikram Vaswani
Hi all, Is there a way to update the record with maximum value in a table with another value? I am trying this: mysql> update services set sfee = 1 where sfee = max(sfee); Query OK, 0 rows affected (0.06 sec) Rows matched: 0 Changed: 0 Warnings: 0 But it doesn't make any changes to the data.