Re: Question about UPDATE - SQL in VFP6

Author: Jon Westcot

Posted: 2010-03-04 at 03:32:50

> > Hi all:

> >

> > Is there a way to tell if an UPDATE statement actually updates a record

> > when there's a WHERE clause being used?

> >

> > For example:

> >

> > UPDATE table1 ;

> > SET field1 = temp_value ;

> > WHERE field2 = search_value

>

> Hi Jon,

>

> Check out the _TALLY system variable. This should be set to the

> number of records effected.

>

> --

> Paul

>

~~~~~~~~~~~~

Hi Paul:

Thanks for the memory nudge. I KNEW there was a way to retrieve this

value, but my brain cells just weren't firing.

Much appreciated!

Jon

_______________________________________________

Post Messages to: ProFox@leafe.com

Subscription Maintenance: http://leafe.com/mailman/listinfo/profox

OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech

Searchable Archive: http://leafe.com/archives/search/profox

This message: http://leafe.com/archives/byMID/profox/0CE1C77F50104A93952980DF64C6EC43@frankenmoo

** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

©2010 Jon Westcot