I hear what you are saying but what does all that means ;)

I am gettting a return for the number of row deleted and a 0E0 when no
rows are deleted.

So, what is my best approach for testing when no row are deleted?

Will this test be true $n==0 where $n='0E0' the returned value?

thanks


>
>
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
>
>> Is the $cnt=dbh->do("delete from mytab") suppose to return the number
> rows
>> deleted?
>
>> I'm getting something other than a number or string.
>
> What are you getting? '0E0' is zero rows since it equals 0, but is also
> true indicating no error. From the docs:
> "do"
> ...
> Prepare and execute a single statement. Returns the
> number of rows affected or "undef" on error. A return
> value of "-1" means the number of rows is not known, not
> applicable, or not available.
>
> HTH,
> Douglas Wilson
>



-----------------------------------------
eMail solutions by 
http://www.swanmail.com

Reply via email to