3 messages in com.mysql.lists.mysqlRe: feature request -- rows_visited
FromSent OnAttachments
Erik E Rantapaa23 May 1999 10:01 
Vivek Khera24 May 1999 07:47 
Fred Read24 May 1999 07:55 
Subject:Re: feature request -- rows_visited
From:Vivek Khera (khe@kciLink.com)
Date:05/24/1999 07:47:11 AM
List:com.mysql.lists.mysql

"EER" == Erik E Rantapaa <rant@tahiti.oss.uswest.net> writes:

EER> For instance, in the following update statement:

EER> update table set a = 'x' where id = 123;

EER> if no rows were modified one doesn't know if that was because EER> there already is a row with id = 123 and a = 'x', or if the

Hmmm... If you do such a query on the mysql command line, it does tell you how many matched and how many were modified. This implies that the API provides some method to do this, as the mysql client is just that -- a client written using the API.

So, at worst, you would read the sources to the mysql program to see how it accomplishes this task. I'm sure the manual also has info on it.