Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Looping thru a Sql table changing data

Status
Not open for further replies.

stanlyn

Programmer
Joined
Sep 3, 2003
Messages
945
Location
US
Hi,

What is the best way to copy field1 into field2 both from a single sql table and into the same record. Only records matching a where clause would be processed? I do have a unique identity key...

In vfp I would

select MyTable
set filter to field1 = 'MyValue'
go top
replace field2 with field1 all

or

replace field2 with field1 for field1 = 'MyValue'

Thanks, Stanley
 
Not bad at all...

Thanks, Stanley


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top