Hi.

On Mon, Mar 19, 2001 at 04:19:32PM +0800, [EMAIL PROTECTED] wrote:
> I want to use mysql_affected_rows to determine whether the sql statement is
> executed or not found.
> If mysql_affected_rows return 0,I take it as not found.
> But If I update a value to the value it already was,
> (It means if some value is 'test', and in my sql statement I update this
> value to 'test')
> mysql_affected_rows also return 0, so I take it as not_found,but it is not I
> want.
> How should I do?

This behaviour is the expected, documented one and even the special
case you want is documented. There is a config variable to change the
default behaviour. Have a look at the manual. Don't know the section
from head, but shouldn't be hard to find.

Bye,

        Benjamin.


---------------------------------------------------------------------
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 <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to